Re: MYSQL_CONNECT vs MYSQL_PCONNECT
| From: | Robert Cummings | Date: | Tue, 20 Jun 2006 17:22:20 +0000 |
| Subject: | Re: MYSQL_CONNECT vs MYSQL_PCONNECT | ||
| References: | 1 | Groups: | php.db php.general |
| Request: | Send a blank email to php-general+get-238416@lists.php.net to get a copy of this message | ||
On Tue, 2006-06-20 at 12:34, Juanjo Pascual wrote:
> How can i know which of both is better to use each time?
Use mysql_pconnect() if the connection overhead is large. This is
usually the case if the database is off on a remote server somewhere in
lala land. Remote servers within your LAN don't usually require
mysql_pconnect(). Use mysql_connect() for pretty much all other
connections.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'