Fwd: [PHP] sending reply, the continuing
| From: | Lucas Gonze | Date: | Fri, 20 Feb 2004 19:23:45 +0000 |
| Subject: | Fwd: [PHP] sending reply, the continuing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178387@lists.php.net to get a copy of this message | ||
On Friday, Feb 20, 2004, at 13:52 America/New_York, Pablo Gosse wrote:
If by terminate the connection you mean stop sending back information to the browser, then perhaps you should look into output control functions: http://ca3.php.net/manual/en/ref.outcontrol.phpWell, the best match there is ob_end_flush, as far as I can tell. Unfortunately that keeps the connection alive while the cache is being recalculated, so that even though the browser has everything it's going to get almost immediately, the throbber keeps going for quite a while, thereby freaking out my users. :( I could fork(), have the parent exit, and regenerate the cache in the child process, but pcntl_fork is not designed for a web server environment.* - Lucas * http://www.php.net/manual/en/ref.pcntl.php