Greg Beaver wrote:
Nice!http://www.php.net/manual/en/features.connection-handling.php
So if I understand correctly I need to:
1- register a shutdown function
2- have this function check if it was called b/c of a conection_timeout()
3- And if so have the function print out my timeout error message
So in my script I could put something like this:
<?php
function timeout_message() {
if ( connection_timeout() ) {
echo "server busy, try again later";
}
}
register_shutdown_function('timeout_message');
[rest of my script goes here ...]
?>
If the script timesout then my error function is called. Is that about right?
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php