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.php
Well, 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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php