run php until last row
ignore_user_abort() — Set whether a client disconnect should abort script execution
Sets whether a client disconnect should cause a script to be aborted.
When running PHP as a command line script, and the script’s tty goes away without the script being terminated then the script will die the next time it tries to write anything, unless value is set to TRUE
call the function at top of the script like this:
// Ignore user aborts and allow the script
// to run forever
ignore_user_abort(true);
set_time_limit(0);
be careful before call it, it can be dangerous, you can need a “httpd restart” or server can fire cause of loads