我已经安装了 PHP 5.4 (Debian 7) 和一个带有以下行的 php 脚本
ini_set('max_execution_time', 30);
因为该 php 脚本的“max_execution_time”不会改变。
出了什么问题?
最佳答案
Return Values
Returns the old value on success, FALSE on failure.
因此:
echo ini_set('max_execution_time', 30); // prints 10 (or whatever the old value was)
echo ini_get('max_execution_time'); // prints 30
但按照史密斯先生的建议,更喜欢set_time_limit();
。
关于PHP 5.4 - ini_set ('max_execution_time' , 30);不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22437409/