我在Windows Vista上运行XAMPP。 XAMPP是一个约一年的安装与所有默认选项。 我在PHP中编写了一个脚本,它将执行networking爬行并将数据放在mysql中。 我在PHP源代码中放置了set_time_limit(36000) ,以便脚本不会超时。 但是,因为我通过将浏览器指向PHP文件来启动脚本,所以浏览器(Chrome和Firefox)超时; 然后脚本停止(即脚本运行良好约一分钟,然后停止)。 问题: 我不明白,如果有可能从我的当前configuration命令行运行PHP。 在cmd提示符下,我键入: php -v并得到'php' is not recognized as an internal or external command 。 如果问题1是真的,我如何从命令提示符运行PHP? 否则,我还能做什么,不会造成超时?
在PHP中,我正在制作一种dynamic包含几个不同的PHP文件的机器人。 由于这些PHP文件可能会改变,我希望在运行include()或require()之前检查文件的语法/parsing错误。 这可能吗? 如果是这样,怎么样?
我在我的ini文件中设置了suhosin.perdir ='p'。 我现在想在每个文件夹的基础上更改suhosin ini设置。 以下所有工作(在所需文件夹内运行phpinfo()显示更改的值): php_value suhosin.post.max_array_depth 100 php_value suhosin.post.max_array_index_length 128 php_value suhosin.post.max_name_length 128 php_value suhosin.post.max_value_length 2000000 php_value suhosin.post.max_totalname_length 512 php_value suhosin.post.max_vars 1000 但是,当我也添加.request设置(我知道是.post设置的上限),它们不会更改: php_value suhosin.request.max_array_depth 100 php_value suhosin.request.max_array_index_length 128 php_value suhosin.request.max_name_length 128 php_value suhosin.request.max_value_length 2000000 php_value suhosin.request.max_totalname_length 512 php_value suhosin.request.max_vars 1000 https://lh4.googleusercontent.com/-Hq6kIKiFvTM/T8NgzIZUafI/AAAAAAAAADY/EPKx_bJ9YLg/s400/1338204362948.png 你有什么想法,如果有什么我必须检查/设置? 我忘记了吗? 谢谢! 马太
我有一个与Centos 5.8的VPS 在phpinfo中显示:'./configure''–disable-fileinfo' '–disable-pdo' '–enable-bcmath''–enable-calendar''–enable-ftp''–enable-libxml '–enable-magic-quotes''–enable-sockets''–prefix = / usr / local''–with-apxs2 = / usr / local / apache / bin / apxs'–with- curl = / opt / curlssl /''–with-imap = / opt / php_with_imap_client /''–with-imap-ssl = / usr''–with-kerberos''–with-libdir = lib64'' –with-libxml-dir = / opt / xml2 /''–with-mysql = / usr''–with-mysql-sock = / var / lib […]
您需要更改其他人的LDAP密码的最低权限是什么? 我正在开发一个允许用户更改密码的工具。 由于该工具需要用PHP编写,唯一的问题是您不能使用用户帐户来更改密码。 要解决这个问题,我们希望使用只能更改所有其他用户的密码的pipe理员/pipe理员帐户。 现在的问题。 我们无法find正确的权限设置,以便帐户被允许更改密码。 它为我们工作的唯一方法是,如果我们让他的域pipe理,这是我们不想要的东西。 那么有人需要用PHP更改其他人的密码的最低权限是多less? 编辑:改变标题,以更好地适应问题。
我被困在这个问题:我有一个PHP网页存储在我的Linux服务器,问题是我只能访问这个网页,当我连接在服务器所在的同一局域网,但是当我尝试远程访问我不能这样做。 我可能做错了什么? 关于服务器的另一个细节: Installed Apache2 Installed PHP5 Installed MySQL DynDNS domain
在对我的httpd error_log执行尾部-f时,每次请求都收到以下错误消息 [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning: PHP Startup: timezonedb: Unable to initialize module [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] Module compiled with module API=20050922 [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] PHP compiled with module API=20090626 [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] These options […]
我有一个运行Windows和IIS服务器的客户端。 它是一个网站在一个域名下呈现在PHP和ASP页面。 因此,您将拥有一个url为http://mysite.com/hello.php的网页,链接到url为http://mysite.com/hello.asp的网页。 php页面由joomla cmspipe理,asp页面由专有的web软件pipe理。 客户已经表示有兴趣将这些php和asp页面放在SSL之后。 我不确定这是否会导致问题。 我用来在Apache和Apache服务器上设置SSL,PHP和HTML是网站上托pipe的唯一页面types。 在IIS上设置SSL来encryption一些PHP和ASP页面不应该是个问题吧?
我在一个共享的托pipe环境中托pipe一个网站。 我认为我相当不错的编码器。 我已经尽一切可能提高我的页面性能,包括caching和gzipping的内容。 我的用户仍然面临问题。 我的网站的url是http://thinkmovie.in 首先我不知道如果页面加载时间是正常的我的网站。 如果它很高,我想知道确切的原因。 我认为服务器是这里的瓶颈。 任何人都知道服务器导致页面加载时间过长。 我刚刚实施了回旋镖 但不知道如何使用它来满负荷。 我也害怕将其详细信息记入数据库会进一步减慢网站。请给出您的build议。
我在Debian Squeeze上运行了/home/www/example.com/www上的http://www.example.com/上的文档。 /home/www/example.com/ www/ index.php php/ include_me.php 在php.ini中,我已经取消注释并更改为: include_path =".:/home/www/example.com" 在www的脚本index.php中,我有require_once("/php/include_me.php") 。 我从PHP获得的输出是: Warning: require_once(/php/include_me.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/example.com/www/index.php on line 2 Fatal error: require_once() [function.require]: Failed opening required '/php/include_me.php' (include_path='.:/home/www/example.com') in /home/www/example.com/www/index.php on line 2 正如你所看到的,包含path根据错误正确设置。 但是如果我做require_once("../php/include_me.php"); , 有用。 因此,包含path必须有错误。 有谁知道我能做些什么来解决它?