RE: [PHP] resource handle - keeping alive?

From: Date: Mon, 10 Nov 2003 16:17:17 +0000
Subject: RE: [PHP] resource handle - keeping alive?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169045@lists.php.net to get a copy of this message
Hi, > Quick answer: as others before me have also mentioned this cannot be done. > > > >has anyone found a way to keep a resource handle alive between > page loads? > > I've missed most of this thread, but thought I'd let you know what I'm going for a socket setup right now. It may or may not fit your scenario. On my server, I have a process running called 'gateway'. Its a Perl script that opens up a socket to where I want to go, and opens up a socket to listen for information coming from the web site. PHP Web Site -> gateway -> Merchant Services This allows us to have a constant socket connection to them (they require this), and defeats losing the connection when the php script terminates. We only get 2 sockets with them at once. We could have up to 15 - 20 at once being needed. This fixes that. You could do this all in PHP. I chose Perl for the server side because I felt it was the way to implement it with our current setup. I don't know if that helps, but maybe it could give you some other things to think about in solving this dilema. -Dan Joseph

« previous php.general (#169045) next »