Re: MySQL and SESSIONs

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

 



Stefano Esposito wrote:
is it somehow possible to store the connection reference obtained from mysql_connect() (note the absence of the "i") in a $_SESSION element?

No. Why would you want to? You'd end up holding on to a database connection even when nothing is using it. If you want to optimise things look at http://php.net/mysql_pconnect but bear in mind that this starts to suck if you scale up to multiple web servers.

-Stut

--
http://stut.net/

--
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