Re: How to pass connection as global variable ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/11/07, clive <clive@xxxxxxxxxx> 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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux