cyfer65 Posted December 25, 2011 Share Posted December 25, 2011 I have script that takes a POST request and executes a function based on the POST Vars that takes from 30-60 seconds to finish.. then does a Header('Location: XXX'); to a website.. Is there anyway to have the script forward to the site first then perform the time consuming function in the background without having the browser page stuck on loading for a 30-60 seconds..? Link to comment Share on other sites More sharing options...
boen_robot Posted December 25, 2011 Share Posted December 25, 2011 Simply doing the location at the start should be sufficient... PHP should continue until its max_execution_time.If that fails, try to instead use header('Refresh: 0; url=XXX'); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.