Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Web design and Programming (https://novahq.net/forum/forumdisplay.php?f=32)
-   -   Website really slowing down.. (https://novahq.net/forum/showthread.php?t=45568)

.Simon. 12-07-2010 05:58 AM

Website really slowing down..
 
I've added some PHP functionality to a site i'm working on, and it's seemed to really slow down =/

Maybe Scott or someone can answer this, but by closing the connection with mysql_close() on each page, could that slow it down that every page has to then connect to the DB again? Is there a better way of doing it than having connection strings on every page?

.Simon. 12-07-2010 06:20 AM

Hmm I just checked my hosting company and they've put up a notice saying they're having some issues with various webservers. Thing is, I can't get on my control panel to find out if mine is one of them -.- so i'll assume it is.

But the question still stands ;P Surely theres a better way than connecting on every page?

Scott 12-07-2010 08:01 AM

I can't explain it any better than this:

http://php.net/manual/en/features.pe...onnections.php

.Simon. 12-07-2010 09:41 AM

Awesome, thanks.


All times are GMT -5. The time now is 08:03 PM.

Powered by vBulletin®