Re: How to detect a PHP script time-out?

From: Date: Wed, 08 Jan 2003 07:45:32 +0000
Subject: Re: How to detect a PHP script time-out?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-130721@lists.php.net to get a copy of this message
Timothy Hitchens ) wrote:
No you can't.. the issue with this is that you need to have error reporting turned on.. so you will need to have more error collecting or removing. [..]
This isn't the best for a production env but this is the best I can see considering you don't want to rewrite!!
Ouch. Having error reproting on is definitely not a good thing. But the again it can be set on a page by page basis so I could turn it off in the php.ini file, and turn it on only in those pages where I need to check for a time out. And it's not that I won't do a re-write it's just that I was hoping for something easy to implement. If a re-write is the only answer then I'll do it of course. I also posted a feature request asking for a shutdown() type function that can be used to send output back to the browser in the case of a timeout. Hope they'll implement it ;) Jc

« previous php.general (#130721) next »