Re: resource handle - keeping alive?
| From: | Martin Helie | Date: | Mon, 10 Nov 2003 15:41:09 +0000 |
| Subject: | Re: resource handle - keeping alive? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169037@lists.php.net to get a copy of this message | ||
Hi Chris,
no, unfortunately, that doesn't work; it creates a permanent socket on the
server, but between page reads, php still loses its resource id, and can't
communicate with the socket...
Martin
"Chris Hayes" <chayes@antenna.nl> wrote in message
news:6.0.0.22.0.20031110161229.028ef180@pop4.antenna.nl...
> At 16:09 10-11-03, you wrote:
> >Here's a quick one:
> >
> >has anyone found a way to keep a resource handle alive between page
loads?
> >
> >For example, I open a socket with fsockopen, and I'd like the handle to
> >survive page loads. As you know, there's not much point storing it in a
> >session (or its parent object)...
> >
> >Any ideas?
> I never used it but what about pfsockopen() ?
> http://ww.php.net/manual/en/function.pfsockopen.php