Best way to use sleep() in the background?
Hi All, this is for a project that I've inherited. The site has a three page questionnaire, each time a form is filled out data goes into the database.
After the first page/form is filled out, I need a script that will sleep 7 minutes and then query the database and get all of the info that was submitted and then send what data got entered off to a lead tracking website via cURL.
Obviously if I put sleep in the main signup script it will wait 7 minutes for the next page to load.
I'm thinking of placing the query and cURL in a separate script and caling it using touch, something like,
Something about this seems roundabout to me, does anyone have any thoughts or opinions on how to do this?