I have run a few tests, and they take a while to return the result, but in my domain, it has given timeout when it reaches 30sec. I know it will generate a result, it will only take some more time. Is it possible to increase the timeout?
I have run a few tests, and they take a while to return the result, but in my domain, it has given timeout when it reaches 30sec. I know it will generate a result, it will only take some more time. Is it possible to increase the timeout?
You can increase the timeout as follows:
set_time_limit(120);//coloque no inicio do arquivo
You can leave without timeout (it will work indefinitely (if php is in safe mode this will not work))
set_time_limit(0);//coloque no inicio do arquivo
You can switch through php.ini
max_execution_time = 120
If you do not have access to php.ini
ini_set('max_execution_time', 120);
(all values are seconds)
Do this:
$segundos = 0;
set_time_limit($segundos);