Forum Moderators: coopster

Message Too Old, No Replies

run program from PHP script

PHP socket listener

         

vasja

5:43 am on Nov 21, 2003 (gmt 0)



Hi, I'm trying to write a socket listener with PHP. It should start separate programs (e.g. new PHP scripts) on request. But when I start a program with PHP exec command the script waits until just run program stops, so the listener is not able to service other requests. I'm working with WinXP, the listener should run also on Linux.

How to solve this problem?

Thanks,
vasja

jatar_k

6:11 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld vasja,

I am not totally sure but what about this
PHP Process Control Functions [ca.php.net]

and specifically pcntl_fork [ca.php.net]