码迷,mamicode.com
首页 > Web开发 > 详细

用php处理xml文件,大概有4千条数据,导致nginx崩溃

时间:2015-03-04 06:24:46      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:php   xml   nginx   

技术分享

2015/03/03 19:58:08 [error] 13184#13204: *13 FastCGI sent in stderr: "PHP Strict Standards:  Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4

PHP Fatal error:  Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"

2015/03/03 19:58:15 [error] 13184#13204: *13 FastCGI sent in stderr: "PHP Strict Standards:  Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4

PHP Fatal error:  Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"

2015/03/03 20:02:09 [error] 12856#10492: *1 FastCGI sent in stderr: "PHP Strict Standards:  Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4

PHP Fatal error:  Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"

2015/03/03 20:02:12 [error] 12856#10492: *1 FastCGI sent in stderr: "PHP Strict Standards:  Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4

PHP Fatal error:  Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"

2015/03/03 20:07:25 [error] 13512#9116: *1 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"

这些是nginx,错误日志,Maximum execution time of 0 seconds exceeded,报这个错误,直接把php安全模式关闭就行。

特别纠结,但是忽然想到,在cmd下运行php脚本如何,于是把php加入到环境变量,运行 php index.php。脚本开始执行,虽然一次无法处理完所有的url.,但是我大概执行了8次左右的php index.php 。果然成功了。哈哈哈。

技术分享


本文出自 “我的博客” 博客,请务必保留此出处http://ningyuqiao.blog.51cto.com/5581274/1616984

用php处理xml文件,大概有4千条数据,导致nginx崩溃

标签:php   xml   nginx   

原文地址:http://ningyuqiao.blog.51cto.com/5581274/1616984

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!