Problem:
When attempting to set max_execution_time using ini_set() or set_time_limit(), the changes are ignored on certain servers, resulting in the default value of 30.
Answer:
In safe mode, PHP restricts the ability to modify certain configuration settings, including max_execution_time. As per the PHP manual, "You can not change this setting with ini_set() when running in safe mode." The same restriction applies to set_time_limit().
Solution:
There are two possible solutions:
The above is the detailed content of Why Are My `ini_set` and `set_time_limit` Calls Being Ignored in PHP?. For more information, please follow other related articles on the PHP Chinese website!