用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,如需转载请自行联系原作者



相关文章
讲解SSM的xml文件
本文详细介绍了SSM框架中的xml配置文件,包括springMVC.xml和applicationContext.xml,涉及组件扫描、数据源配置、事务管理、MyBatis集成以及Spring MVC的视图解析器配置。
145 1
Eclipse 创建 XML 文件
Eclipse 创建 XML 文件
83 2
|
5月前
|
maven项目的pom.xml文件常用标签使用介绍
第四届人文,智慧教育与服务管理国际学术会议(HWESM 2025) 2025 4th International Conference on Humanities, Wisdom Education and Service Management
501 8
|
6月前
|
java与XML文件的读写
java与XML文件的读写
62 3
php学习笔记-php文件表单上传-day06
本文介绍了PHP文件上传处理流程、预定义变量`$_FILES`的使用、文件上传状态代码以及文件上传实现函数。同时,通过一个文件上传的小例子,演示了文件上传表单的创建、文件上传表单处理的PHP页面编写以及运行测试输出。
php学习笔记-php文件表单上传-day06
vue前端开发中,通过vue.config.js配置和nginx配置,实现多个入口文件的实现方法
vue前端开发中,通过vue.config.js配置和nginx配置,实现多个入口文件的实现方法
360 0
|
6月前
|
C#使用XML文件的详解及示例
C#使用XML文件的详解及示例
242 0
|
7月前
进入靶场,出现一张照片,右击查看源代码,发现有一个注释的source.php文件
这段代码实现了一个网站上弹出的促销海报动画效果,包含一个关闭按钮。当促销海报弹出时,会在三秒后开始抖动一两下。海报使用固定定位居中显示,带有阴影和圆角,关闭按钮位于右上角。可以通过修改时间参数调整弹出时间。
51 0

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等