Forum Moderators: coopster

Message Too Old, No Replies

Closing output stream but continuing script execution...

Fed the HTTP request but want to carry on with a time consuming process

         

dmorison

10:58 am on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any of you PHP guru's know how to flush and close the output stream, but allow the script to continue execution?

Can't find anything in a GGroups search, and no obvious functions showing up in the documentation. Any ideas?

killroy

11:29 am on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I usually use the flush() function. But that's C, win API. You'll have t ocheck for your OS/language.

Another option would be to spawn a second process that does the actually after work.

SN