Re[2]: [PHP] daemonized php
| From: | Uros | Date: | Mon, 07 Jul 2003 13:30:22 +0000 |
| Subject: | Re[2]: [PHP] daemonized php | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154190@lists.php.net to get a copy of this message | ||
Hello,
ok what about checking status what this program is doing right now.
can this be done with
http://www.php.net/manual/en/ref.pcntl.php
tia
Uros
Monday, July 7, 2003, 3:16:35 PM, you wrote:
AV> #!/usr/local/bin/php -q
AV> <?php
AV> set_time_limit(0);
AV> while(true)
AV> {
AV> // do something
AV> }
?>>
AV> Then:
AV> chmod u+x scriptname
AV> ./scriptname &
AV> 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.
>>