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

wKioL1T1qg6S2XUzAAIFR2l4Qhc134.jpg

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 。果然成功了。哈哈哈。

wKioL1T1q-az3zePAAIBKeIUBPk800.jpg








      本文转自ning1022 51CTO博客,原文链接:http://blog.51cto.com/ning1022/1616984,如需转载请自行联系原作者



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值