我想增加php中的 最大执行时间 ,而不是通过更改php.ini文件。
php.ini
我想从我的php文件中增加它。
这可能吗?
ini_set(‘max_execution_time’, ‘300’); //300 seconds = 5 minutes ini_set(‘max_execution_time’, ‘0’); // for infinite time of execution
将其放在您的PHP脚本的顶部,然后放开您的脚本!
从使用ini_set()增加PHP脚本执行时间限制中获取