gpt4 book ai didi

PHP 5.4 - ini_set ('max_execution_time' , 30);不起作用

转载 作者:太空宇宙 更新时间:2023-11-04 04:02:41 24 4
gpt4 key购买 nike

我已经安装了 PHP 5.4 (Debian 7) 和一个带有以下行的 php 脚本

ini_set('max_execution_time', 30);

因为该 php 脚本的“max_execution_time”不会改变。

出了什么问题?

最佳答案

Manual for ini_set() :

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com