开发者

Increase PHP Script Execution Time [duplicate]

This question already has answers here: Fatal error: Maximum execution time of 30 seconds exceeded (17 answers) Closed 8 years ago.

I want to send hundreds of emails using PHP. To increase the execution time, I used ini_set('max_execution_time', 10); but after sending just 30开发者_Go百科 emails the browser shows me a blank page and does not send all of the emails.

I also changed the limit to 300, 600 ..


Try set_time_limit(0); at the top of your script.

set_time_limit sets the maximum execution time in seconds. If set to zero, no time limit is imposed (see PHP manual).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜