First, you need to check that Is your server run your site in safe mode or not because You can not change this setting with ini_set()
when running in safe mode. Many hosts run in safe mode so better to check first.
max_execution_time
only limits the script execution time of itself i.e. CPU
time of your script.
In case if you do with set_time_limit()
then the same restriction is in place on set_time_limit()
.
set_time_limit()
is indeed just a convenience wrapper around the according ini_set()
call.
You can check difference between them here.
Second, after set time limit then you should also set the memory limit with ini_set('memory_limit','32M');
. memory unit depends upon your requirement.
Using this condition you can check that Is your limit function effects value or not
echo 'Time Limit = ' . ini_get('max_execution_time') .
So better to check result with changes. This way you can check, Is your changes working or not, if not then you need to consult with support