Re: sockets

From: Date: Fri, 08 Nov 2002 10:54:04 +0000
Subject: Re: sockets
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123347@lists.php.net to get a copy of this message
This is how sockets work, if you close the process holding the socket, the conection is closed. There is no function reopen_the_old_conection. You are not clear about what you are trying to achive, but maybe you should rethink your design. Gareth Thomas wrote:
Hi, I am running 4.3.0pre2 on RH 7.2 and on Windows2k I am trying to implement a socket based client/server communication program with the server being on the Linux side and the current test client on windows (although it will be on Linux eventually). A series of commands is sent by the client side which consists of 2 PHP pages, the first with some buttons and the second that sends the button commands to the server using sockets. The problem I am finding is that it appears PHP closes the socket connection once the second script has ended and it returns back to the first. Is there anyway of keeping the socket 'open' or can someone suggest a better way of doing this... Thanks in advance


« previous php.general (#123347) next »