Jump to content

Forward To Site While Time Consuming Script Executes..?


cyfer65

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...