grim1208 Posted March 16, 2009 Share Posted March 16, 2009 I am not sure what to google to get help with what it is I am trying to do. I have php script that is doing a large database insertion, and sending an email to a use of the site. It takes a very long time to run the email script, making the user wait 2-3 minutes to populate the the thank you page. What I would like to do, is run the database insertion script and load the thank you page, and on the side, call my email script that runs out on it's own, so the user doesn't have to wait for the emailing script to be written and sent. I have done a bit of research in the php manual under system, but to no prevail. Please help phpFreaks Link to comment https://forums.phpfreaks.com/topic/149701-running-script-from-multiple-pages/ Share on other sites More sharing options...
rhodesa Posted March 16, 2009 Share Posted March 16, 2009 What OS is the server running? If it's Linux, you can do a background process. If it's Windows, you will have to do a queue with a scheduled task that checks the queue periodically Link to comment https://forums.phpfreaks.com/topic/149701-running-script-from-multiple-pages/#findComment-786091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.