如何增加PHP的最大执行时间 [英] How to increase maximum execution time in php
本文介绍了如何增加PHP的最大执行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在php中增加最长执行时间,而不是通过更改php.ini
文件来实现.
I want to increase maximum execution time in php , not by changing php.ini
file.
我想从我的php文件中增加它.
I want to Increase it from my php file.
这可能吗?
推荐答案
ini_set('max_execution_time', '300'); //300 seconds = 5 minutes
ini_set('max_execution_time', '0'); // for infinite time of execution
将其放在您的PHP脚本的顶部,然后放开您的脚本!
Place this at the top of your PHP script and let your script loose!
这篇关于如何增加PHP的最大执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文