Re: How to pass connection as global variable ?

From: Date: Wed, 11 Jul 2007 09:15:15 +0000
Subject: Re: How to pass connection as global variable ?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-258604@lists.php.net to get a copy of this message
On 7/11/07, clive <clive@rttc.co.za> wrote:
Hi Chris, I recreated a new connection in faq.php and it's working now. I had the impression that 1 connection could last during a user session, but apparently a user session may need many connections. Thanks again, Cor Have a read on persistent connections
That won't help. All that does is tell the database server to leave the connection lying around *just in case* someone else decides that a connection is needed. http://php.net/mysql_pconnect explains it. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#258604) next »