in reply to Best way to make a script run persistently (daemon)

Personally, sounds to me like an event-driven model would be better - why roll your own if you have HTTPD at your disposal? But . . . if you _have_ to write a daemon, here are a couple of resources:

jeffa