Answer the question
In order to leave comments, you need to log in
The PHP script is not fully executed. What reason?
I'm making a php parser locally (openserver).
PHP values are set:
ignore_user_abort(true);
ini_set('error_log', 'err.log');
ini_set('max_execution_time', 0);
error_reporting(E_ALL);
set_time_limit(0);
Mysql is set to: wait_timeout = 86400
There is nothing in the script itself that could stop it (die, break, etc.), it consumes little memory, resets unnecessary variables. The parser should work for 12 hours (until it parses all the goods), but it sometimes turns off for no reason (maybe after half an hour, or maybe after 8), but there is no error (base and php), even in the console through which I run the script nothing does not show (does not even mark the action as completed), nevertheless, the activity completely disappears, nothing is written to the database, to the log file too. The place where parsyu works
Answer the question
In order to leave comments, you need to log in
any, yes, a million reasons from hardware to software and you can search from a couple of hours to a couple of years and not find it
Change the architecture so that the script does not work for 12 hours, but many small scripts that will add batches of tasks, run, write logs to the database
through cron For example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question