> Now the problem is that the C program will be running
> for longs periods like maybe half or even an hour. So
> i would basically want to just execute the program and
> return control to the script immediately so that the c
> program continues it's work.
>
> it's easy with forking. but i dont see it in php.

It's quite easy with PHP as well, even though we do not have forking.

Either use exec("nohup c-program") to detach the program, and return control
back to the script, or execute it via a shutdown function. That way, the
program gets executed after the script has finished.

PEAR offers an abstraction for executing system commands. Look for CMD.php

/A



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to