Re: daemonized php
| From: | Adam Voigt | Date: | Mon, 07 Jul 2003 13:16:35 +0000 |
| Subject: | Re: daemonized php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154187@lists.php.net to get a copy of this message | ||
#!/usr/local/bin/php -q
<?php
set_time_limit(0);
while(true)
{
// do something
}
?>
Then:
chmod u+x scriptname
./scriptname &
On Mon, 2003-07-07 at 08:41, Uros wrote:
> Hello!
>
> Can somebody give me any workable example how to run some script written in
> PHP in Unix console.
>
> I wan't to write some server aplication. So it has to be run in the
> backgroud.
>
>
> --
> Best regards,
> Uros
--
Adam Voigt (adam@cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group