[PHP] register_shutdown_function - uses for

2001-04-10 Thread Greig, Euan
I was hoping that I could use this function to enable me to finish scripts tidily when they time out or are aborted by the user. eg display the message "script timed out". However this will not work as no output is allowed in the shutdown function. I can see other ways to do what I want (but

Re: [PHP] register_shutdown_function - uses for

2001-04-10 Thread elias
Hmm so you can't print?! can you redirect? Header("Location: mymessage.html"); -elias http://www.kameelah.org/eassoft ""Greig, Euan"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I was hoping that I could use this function to enable me to finish scripts

Re: [PHP] register_shutdown_function - uses for

2001-04-10 Thread Steve Werby
"Greig, Euan" [EMAIL PROTECTED] wrote: I was hoping that I could use this function to enable me to finish scripts tidily when they time out or are aborted by the user. eg display the message "script timed out". However this will not work as no output is allowed in the shutdown function. I can

Re: [PHP] register_shutdown_function - uses for

2001-04-10 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] ("Greig, Euan") wrote: I was hoping that I could use this function to enable me to finish scripts tidily when they time out or are aborted by the user. eg display the message "script timed out". However this will not work as no output is

Re: [PHP] register_shutdown_function - uses for

2001-04-10 Thread Yasuo Ohgaki
For another example use of shutdown function. Take a look at how PEAR destructor is implemented. It's using shutdown function. Regards, -- Yasuo Ohgaki ""Greig, Euan"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I was hoping that I could use this function