I\'ve tried everything to change the max_execution_time
of a php crawler script so that it can run an infinite amount of time.
I have changed the php.in
check phpinfo()
from a temp script and search for max_execution_time
. make sure that it has same value what you are setting. default should be 30 seconds. try to change it to a couple of different values and restart apache then check the value in phpinfo()
to confirm.
if when you change the value it is reflected properly in the phpinfo()
it means that there is some code in your script which is changing this value. search for two things in your code:
ini_set()
and check if it is change max_execution_time
set_time_limit()
these functions can change maximum time limit of execution from script. otherwise you should check .htaccess
from where this value may be set. but this will effect phpinfo()
also.