Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Richard Quadling
On 14 January 2011 18:48, Nicholas Kell wrote: > > On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > >> Hi guys and thanks for your answers... >> >> @Nicholas: >> Yes, you are right. The first socket is only used if a new clients >> connects, thats why the script generates a new port so the client c

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > Hi guys and thanks for your answers... > > @Nicholas: > Yes, you are right. The first socket is only used if a new clients > connects, thats why the script generates a new port so the client can > connect to the new socket. After that socket1 shoul

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > Hi guys and thanks for your answers... > > @Nicholas: > Yes, you are right. The first socket is only used if a new clients > connects, thats why the script generates a new port so the client can > connect to the new socket. After that socket1 shoul

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Kai Renz
Hi guys and thanks for your answers... @Nicholas: Yes, you are right. The first socket is only used if a new clients connects, thats why the script generates a new port so the client can connect to the new socket. After that socket1 should continue its work and wait for new clients. @Daniel: Yeh

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Daniel Brown
On Fri, Jan 14, 2011 at 13:28, Kai Renz wrote: (Putting this back on the list. Please use Reply-All.) > @Daniel: > Yeh i tried sending it to the background, this works but still it does > wait for the other script to finish. It shouldn't. In fact, just to see if I somehow completely f

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Daniel Brown
On Fri, Jan 14, 2011 at 11:56, Kai Renz wrote: > > Now here is the problem: > it all works fine, but the client can't send a quit message to socket1 > because socket1.php waits until socket2.php is finished. socket2.php > is working properly, and if i connect to the new socket and quit the > conne

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 10:56 AM, Kai Renz wrote: > Hi there, > > i'm currently working on a socket project. It consists of two scripts. > The first script (socket1.php) creates a socket on a specified port > and waits for a client to connect. If a client connects, they exchange > some informations,