Hello Adam,

I was thinking about using parent and child proces. So when i start server
it will call some child process and that I can ask parent what his child is
doing.

I found some examples on php.net.

But I sill wan't to hear from you php experts. Anybody do such thing in
real example or this is can only be my dream.

tia

Uros

Monday, July 7, 2003, 3:33:47 PM, you wrote:

AV> Umm, have your PHP program output a integer to
AV> a file somewhere, and just map the integer to
AV> a status, example, if "1" exists in the file, it's
AV> doing step 1, etc.



AV> On Mon, 2003-07-07 at 09:30, Uros wrote:
>> 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.
>> >> 


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

Reply via email to