I've got an auto-emailer application which imports contacts from a CSV file and parses it to a PHP script via AJAX to email in chunks to get around an unresolvable PHP timeout issue.
Unfortunately, this method is not 100% reliable and I want to create a new application which instead uses a mySQL table of contacts and does away with parsing data via AJAX.
So let's say I have a table of 500 contacts that I want the PHP script to process, but it can only handle 20 at a time before you must close and restart the script due to timeout. How can I automatically restart the script without calling it via AJAX?