A great way to never have your PHP script failPosted: April 8, 2006
A little while ago I wrote a post about how to prevent your cron job from failing. A comment was posted suggesting the use of the PHP function ignore_user_abort(true). This is a great idea; anyone who is running a PHP script should put this:
as the first line in their script. This way, if your script takes longer than 60 seconds, and WebBasedCron closes the connection, the script will continue to run on your server.