Global (?) socket
| From: | Barbara Lazzerini | Date: | Tue, 17 Aug 1999 14:05:45 +0000 |
| Subject: | Global (?) socket | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9920@lists.php.net to get a copy of this message | ||
Pisa, 17.08.99
Hi,
I have been writing a php script to connect to a JAVA server by using
socket.
What I need is to establish a connection to a port and to keep the socket
alive even if I change page. In this way I could send messages to (or
receive from) the server from one page and, for example, receive (or send)
messages within a different page which knows identifier of the socket and
find the socket already open.
Is this possible? Could you send me an example?
I tried to use pfsockopen() but I failed! Can you help me?
Thanks in advance, Regards
Barbara Lazzerini