Answer the question
In order to leave comments, you need to log in
Does a lengthy php script run via cron break?
In php script put:
set_time_limit(0);
ini_set('max_execution_time', '-1');
Answer the question
In order to leave comments, you need to log in
https://www.php.net/manual/en/info.configuration.p...
max_execution_time int
This directive specifies the maximum time in seconds during which the script must be fully loaded. If this does not happen, the parser exits the script. This mechanism helps prevent the server from freezing due to poorly written script. The default is 30 seconds to load. If PHP is run from the command line, this value is 0 by default.
there are no critical errors in the logs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question