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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php