Re: Database Connections - permanent or something else?

From: Date: Tue, 16 Jan 2001 19:29:37 +0000
Subject: Re: Database Connections - permanent or something else?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34885@lists.php.net to get a copy of this message
PHP handles persistent connections by leaving them open for some other identical connection request. The next request will check for a free connection. see http://www.php.net/manual/en/features.persistent-connections.php In other words, you don't need to worry about when they are closed php will handle that for you mOrP wrote: > > There's one thing, that I don't understand about permanent connections. > > When will they be closed? > I could use a logout-page, but there is no garanty for the use of it. > > Any explanation would be appreciated. > > mOrP > > > -----Original Message----- > > From: Ignacio Vazquez-Abrams [mailto:ignacio@openservices.net] > > Sent: Tuesday, January 16, 2001 6:17 PM > > To: Sam > > Cc: 'mysql@lists.mysql.com'; 'php-general@lists.php.net' > > Subject: Re: [PHP] Database Connections - permanent or something else? > > > > > > On Tue, 16 Jan 2001, Sam wrote: > > > > > Hi, > > > > > > I have several web pages that are built with php and mySQL. > > > I use a new connection for each script. > > > Should I be using a permanent connection? Or is there a better > > way around > > > this? > > > > > > Regards, > > > Sam Rose > > > > > > > Persistent connections are more efficient in that they don't need > > to open the > > connection each time. Unless you have an overwhelming need to > > limit concurrent > > connections to your MySQL server, you should probably be using persistent > > connections. > > > > -- > > Ignacio Vazquez-Abrams <ignacio@openservices.net> > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <mysql-thread62000@lists.mysql.com> > To unsubscribe, e-mail <mysql-unsubscribe-steve=rubysolutions.com@lists.mysql.com> > Trouble unsubscribing? Try: > http://lists.mysql.com/php/unsubscribe.php

« previous php.general (#34885) next »