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" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 5:11 PM Subject: [PHP] Persistent connections with mysql_pconnect() > On Tuesday 25 March 2003 09:02 am, "skate" <[EMAIL PROTECTED]> 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php