Re: background process
| From: | Richard Lynch | Date: | Thu, 27 Jan 2005 20:04:36 +0000 |
| Subject: | Re: background process | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207528@lists.php.net to get a copy of this message | ||
mbneto wrote:
> I'd like to create a script that will act as a daemon.
>
> Now I simply add while() { .... do stuff }
>
> But this forces me to call it script.php &. Is there a way to make
> this work without the &
You're probably better off using & when calling it, but:
http://php.net/pcntl_fork
and friends could do what you think you want...
--
Like Music?
http://l-i-e.com/artists.htm