[nycphp-talk] send header before end of script?
Analysis & Solutions
danielc at analysisandsolutions.com
Thu Oct 23 20:28:25 EDT 2003
Stephen:
On Thu, Oct 23, 2003 at 05:38:37PM -0400, Stephen Musgrave wrote:
> ignore_user_abort and I would like to send the a confirmation screen to the
> user that tells them that, "the process has been started and it will be
> completed in 2 hours." But from what I can tell, sending the header
> redirect to the confirmation page aborts the execution of the script.
The simple way is to send them to a confirmation page. Just print out the
confirmation on the original page when the process is done. You can use
the output buffering functions to get the initial "be patient" message.
You can also use it to spit out a list of emails sent along the way, if
you like. Then, when it's completed, echo that fact out to the browser.
--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list