是否使用“ php”脚本运行PHP脚本?命令受超时限制的影响? [英] Are PHP scripts run using the "php" command affected by the timeout limit?

查看:97
本文介绍了是否使用“ php”脚本运行PHP脚本?命令受超时限制的影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

受超时限制影响,PHP脚本是否使用 php命令运行?我计划使用cron来计划php脚本。

Are PHP scripts run using the "php" command affected by the timeout limit? I plan to schedule php scripts using cron.

推荐答案

是的,但是您可以通过将其添加到顶部来设置无限超时。您的脚本:

Yes, but you can set an unlimited timeout by adding this to the top of your script:

set_time_limit(0);

这篇关于是否使用“ php”脚本运行PHP脚本?命令受超时限制的影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆