Re: Persistent connections with mysql_pconnect()

From: Date: Tue, 25 Mar 2003 17:13:57 +0000
Subject: Re: Persistent connections with mysql_pconnect()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-140978@lists.php.net to get a copy of this message
no, not at all... but there is a time and a place, and i don't think you should use pconnect just because you don't want to an include at the top of every page. ----- Original Message ----- From: "John Hicks" <frappyjohn@dos2linux.org> To: "php" <php-general@lists.php.net> Sent: Tuesday, March 25, 2003 5:11 PM Subject: [PHP] Persistent connections with mysql_pconnect() > 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... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#140978) next »