Re: serve long duration pages
| From: | Adam Zey | Date: | Wed, 28 Jun 2006 18:57:25 +0000 |
| Subject: | Re: serve long duration pages | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238832@lists.php.net to get a copy of this message | ||
John Gunther wrote:
You're right <sads (self-administered dope slap)>, my task is really not a web function except for the need to trigger it from an admin page. I'm going to use the PHP command line interface to run it without web interaction. However, there are still situations where a web script may sometimes involve long run times depending on the parameters supplied by the user (an example might be a SQL execution page where the user-supplied query could range from simple to very complex). I'd still like to know how to communicate via PHP that I want an infinite timeout for a particular web page..As I said, have you tried outputting a constant stream of invisible HTML such as '<b></b>'? Spit one of those out every second or so and the browser might be happy. You'd have to do the query asynchronously, though, since you'd need to output the tags while it was executing. Regards, Adam.lets start by saying that any webpage script that takes that long to run is shit by design.John