This is a fairly simple one if both the server and browser obey the
specs:
Set up output buffering on your page then if the page times out the
buffer
should be sent to the browser and that is loaded with your message.
PSEUDO CODE:
start output buffering
put into buffer the required message
start building actual page in a string behind the scenes
fork--> page times out the buffer is sent out
--> page ends properly ... clear the buffer and output the
string you built
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -----Original Message-----
> From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 8 January 2003 1:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to detect a PHP script time-out?
>
>
> How can I detect if my PHP script is about to time-out?
>
> I would like to be able to detect a time-out and display a
> page with an
> appropriate error message "i.e. the server is busy now,
> please try again
> later".
>
> Jc
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php