请问,为什么定时执行PHP程序,其他程序无响应?多谢

WBOY
Release: 2016-06-13 13:41:19
Original
990 people have browsed it

请教,为什么定时执行PHP程序,其他程序无响应?谢谢!
用的系统是IIS。
在windows计划任务中添加"C:\Program Files\PHP\php.exe" -q "Timer.php"
由于业务也多,timer.php执行时间有点长,可能5分钟左右,
在这一等待过程中 新建窗口打开当前站点下的其他php页面时都陷入等待,一直到脚本的结果全部返回了,其他页面也就能正常打开了。
请问这个有没哪位有好点的解决办法?谢谢!

------解决方案--------------------
在 Timer.php 中不要使用可能被 web 方式下 php 使用的文件

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!