On Friday, Feb 20, 2004, at 14:57 America/New_York, Chris W. Parker wrote:


how about having your php script execute another php script via the
command line?

wouldn't this allow the web page to close it's connection while the
command line continued to do it's thing unaware of what was going on
with the web server?

I thought about that but ended up not doing it for fear of zombies -- that was my interpretation of the warning in the documentation that CGI scripts shouldn't futz with process control.


In the end the cleanest solution was to set up a cron job which fetches the cache regenerator. This was purely an issue of convenience. I implemented both the cron solution and the callback solution, and found that the version using the callback wasn't working. Obviously this meant a bug, but given that the solutions are roughly as good as one another I just stuck with the one that was quicker.

Thanks folks!

- Lucas

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to