阅读背景:

按计划任务运行的PHP脚本挂起 - 帮助!

来源:互联网 

I've built a php script that runs from the command line. It opens a connection into a pop3 email account and downloads all the emails and writes them to a database, and deletes them once downloaded. I have this script being called from the commandline by a bat file. in turn I have created a scheduled task which invokes the bat file every 5 minutes. The thing is that I have set the time out to zero for the fact that at times there could be emails with large attachments and the script actually downloads the attachments and stores them as raw files offline and the no timeout is so that the script doesnt die out during downloading. I've built a php script that runs from the comm




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: