Persistent connections with mysql_pconnect()

From: Date: Tue, 25 Mar 2003 17:11:32 +0000
Subject: Persistent connections with mysql_pconnect()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140977@lists.php.net to get a copy of this message
On Tuesday 25 March 2003 09:02 am, "skate" <root@fatcuban.com> wrote: > leaving the connection open creates security questions, > and also leaves resources open, what if a user closes his > browser window, how do you know to close the connection? So are you saying that persistent connections [ i.e. mysql_pconnect() ] should never be used? > if you really want to make it simple, you can edit your > php.ini to have the username and password as default in > there, but again, this can be a security risk. > > i'm afraid the best way is to include connection code on > every page...

« previous php.general (#140977) next »