Re: What is the proper way to use mysql db on a multipage site?
| From: | Jackson Miller | Date: | Sat, 27 Sep 2003 03:09:50 +0000 |
| Subject: | Re: What is the proper way to use mysql db on a multipage site? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164077@lists.php.net to get a copy of this message | ||
On Friday 26 September 2003 3:54, Chris Shiflett wrote:
> http://www.php.net/mysql_pconnect
If you have even moderate load on your server mysql_pconnect is going to
really hurt performance.
The best method I have found is to just make sure the connection code is only
in one file and then included into each of your scripts.
No matter what, every page load from the webserver that needs database
connectivity is going to have to connect to the database.
-Jackson
>
> Hope that helps.
>
> Chris
>
> =====
> Become a better Web developer with the HTTP Developer's Handbook
> http://httphandbook.org/
--
jackson miller
cold feet creative
615.321.3300 / 800.595.4401
jackson@coldfeetcreative.com
cold feet presents Emma
the world's easiest email marketing
Learn more @ http://www.myemma.com