How can I override the php.ini max_execution_time value at runtime?
I do not have access to php.ini
on my server. I want to change the maximum execution time so that my script can run for more than 30 seconds.
Is there a way to do this at the beginning of my script?
+3
user2024264
source
to share
1 answer
use ini_set
ini_set('max_execution_time', 300); // this will set max_execution time for 300 seconds
write this line at the beginning of your code in php file.
OR
use this Hanky ββPanky γ±
set_time_limit(300);
+5
Yogesh suthar
source
to share