有更多的时间执行php脚本


More time to execute php script

有没有用php设置超时时间?我有一个脚本,它执行的时间比我的服务器允许的要长。如何更改超时时间?php有可能吗?这可能吗?我只能通过cPanel访问我的服务器设置。

您可以使用此处的set_time_limit():http://php.net/manual/en/function.set-time-limit.php

请参阅http://php.net/manual/en/function.set-time-limit.php或者在这里:如何增加php 中的最大执行时间