Re: [PHP] running php method in the background

2006-06-09 Thread Richard Lynch
On Thu, June 8, 2006 9:10 am, Nic Appleby wrote:
 I have a php web script which communicates with a server using
 sockets.
 There is a method in which the client listens for messages from the
 server, and this blocks the client.
 I need a way to 'fork' a process or to get this method to run in the
 background so that i can process user input while not interrupting the
 protocol.

 I have searched all over the web with no luck, can anyone point me in
 the right direction?

http://php.net/fsockopen and friends discuss the non-blocking aspect.
http://php.net/fork covers fork.

You can't use fork (or any pcntl) in a web-server environment, only CLI

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] running php method in the background

2006-06-08 Thread Nic Appleby

Hi there

I have a php web script which communicates with a server using sockets.
There is a method in which the client listens for messages from the
server, and this blocks the client. 
I need a way to 'fork' a process or to get this method to run in the
background so that i can process user input while not interrupting the
protocol.

I have searched all over the web with no luck, can anyone point me in
the right direction?

thanks
nic

All Email originating from UWC is covered by disclaimer  
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

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