I have a PHP script that rolls through a large table of email addresses and sends out a newsletter based on custom content drawn from the database. On average I calculate this script to take 2 minutes or so to run.
Is there a way to fire off the process in the background so that the page does not have to wait to be loaded in the browser? I am afraid that those who are running the mailing script will close the window or hit stop and screw things up. Can I somehow run it in the background or are there other ideas? Thanks!
FYI, I am on a shared hosted webserver, so I don't have root access to anything.