草庐IT

field_with_errors

全部标签

php - zend_call_method_with_N_params

PHP扩展开发有zend_call_method_with_0_params、zend_call_method_with_1_params和zend_call_method_with_2_params。但是如何调用超过2个参数的方法呢? 最佳答案 我之前的回答是错误的。你必须使用zend_call_functiondirectly.查看正文zend_call_method.基本上你必须准备一个zend_fcall_info先对象。参数数量应存储在fci.param_count中领域和fci.params应该有一个数组fci.para

php - fatal error : Maximum execution time of 30 seconds exceeded when i execute daily run from my website

我正在使用来自网站供应商的phpMyAdmin。我似乎无法编辑php.ini设置页面。那么在哪里设置ini_set('max_execution_time',300);?在我的Php编码页面中?或任何设置页面? 最佳答案 如果您不能编辑php.ini配置,那么您可以在您的PHP页面顶部设置以下内容:ini_set('max_execution_time',300);//300seconds=5minutes//ORset_time_limit(300);//Ifsettozero,notimelimitisimposed.注意:se

php - SOAP 错误 fatal error : Uncaught SoapFault exception: [HTTP] Could not connect to host

我在使用PHPSoapClient发送SOAP请求时遇到此错误:Fatalerror:UncaughtSoapFaultexception:[HTTP]Couldnotconnecttohostin/var/www/phpwebservice/soap-client.php:6Stacktrace:#0[internalfunction]:SoapClient->__doRequest('__call('getCatalogEntry',Array)#2/var/www/phpwebservice/soap-client.php(6):SoapClient->getCatalogEnt

php - fatal error : Allowed memory size of 25165824 bytes exhausted (tried to allocate 31436096 bytes)

我是Joomla的新手,我现在使用的是Joomla1.6我遇到的问题是,当我尝试通过管理工具上传扩展时,我收到以下错误消息:"Fatalerror:Allowedmemorysizeof25165824bytesexhausted(triedtoallocate31436096bytes)inC:\AppServ\www\libraries\joomla\filesystem\file.phponline295"我已经阅读了一些相关消息,但没有得到解决。phpinfo返回一个我认为可能相关的值:1)upload_max_filesizelocalvalue=200;mastervalu

php - WeBid : Timezones with daylight savings time not calculated correctly

我目前正在使用一个开源应用程序:WeBid(可用here)问题是:用户在数据库中存储了首选时区该站点在数据库中存储了一个默认时区所有数据库存储的日期都存储在“GMT-0”应用程序无法正确计算DST(夏令时),因为它使用了以下代码:(包括/functions_global.php)$this->ctime=time()+(($this->SETTINGS['timecorrection']+gmdate('I'))*3600);$this->tdiff=($this->SETTINGS['timecorrection']+gmdate('I'))*3600;gtpotyf解释说:gmda

php - Oracle 11 即时客户端连接到远程 Oracle 8i 服务器 : ORA-12514 error

我遇到了一个问题,我花了几个小时来解决这个问题。这是问题所在:我正在尝试使用Oracle11即时客户端连接到远程Oracle8i服务器:这是我在PHP中的连接字符串:$conn=oci_connect('db_user','db_pass',"db_ip/db_service");db_ip是服务器的ip,比如“12.34.56.78”。db_service是服务器的服务,比如“test”。显示的错误是ORA-12514:TNS:listenerdoesnotcurrentlyknowofservicerequestedinconnectdescriptor我可以使用同一个客户端连接到

php - fatal error : DOMDocument not found after Zend Server CE Update

我在Windows7(64位)系统上使用ZendServerCE。我正在使用ZendFramework2.0开发一个网站。在本网站中,我使用DOMDocument来分析外部网站(由URL给出)。我使用ZendFramework1.12和ZendServerCE4(PHP5.2)开始这个项目。现在我安装了ZendServerCE5.6.0(apache2.2、PHP5.3.14、ZF2-Support)。我用ZF2.0重建我的项目。一切正常...除了一个功能。当我尝试实例化DOMDocument时收到此错误消息(php-error.log):Fatalerror:Class'Applic

php - 应用程序/控制台 Assets :install to S3 using stream wrapper errors

我有一个流包装器配置为使用Gaufrette与amazons3一起工作bundle来管理文件系统。我可以使用assetic成功转储Assets,我当前的配置如下:knp_gaufrette:adapters:amazon:amazon_s3:amazon_s3_id:site_store.s3bucket_name:%site_store.bucket_name%create:truefilesystems:amazon:adapter:amazonstream_wrapper:protocol:s3filesystems:-amazonassetic:read_from:%cdn_p

PHP:为什么将 "Strict standards: Declaration of x should be compatible with y"应用于静态方法?

如果您编写如下代码,PHP警告“严格标准:x的声明应与y兼容”会警告您:classA{functionfoo($x){..}}classBextendsA{functionfoo(){..}}这是明智的,因为像“$a”这样的对象引用,您认为它是A,但在运行时可能会变成B,因此像$a->foo(3)这样的动态调度方法调用可能最终调用B::foo()时使用了错误数量的参数。我的问题是:为什么同样的警告适用于不是动态调度的静态方法?classX{staticfunctionbar($x){..}}classYextendsX{staticfunctionbar(){..}}在这个例子中,函数

PHP file_get_contents 很慢并返回 500 Internal Server Error

我正在尝试阅读新闻机构网站的rss并获取所有新闻的多个选项以保存在我的数据库中。所以我使用php函数作为file_get_contents或cURl,但它需要大约一分钟来获取网站内容并分析它以分离我想要的新闻部分。这是我从rss获取新闻数据的代码的一部分:$rss=newDOMDocument();$rss->load('http://isna.ir/fa/Sports/feed');$feed=array();foreach($rss->getElementsByTagName('item')as$node){$item=array('title'=>$node->getElemen