View Single Post
  #4 (permalink)  
Old 16-08-2007, 22:46
eUKhost.com's Avatar
eUKhost.com eUKhost.com is offline
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,773
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by DavidAllen View Post
Think pconnect holds a permament connection whilst connect isn't. A permanent one can hog up the server if it isn't released properly, so I think that's probably why.
You are right.

pconnect is for persistent connection. All such connections stay open even if the query is completely executed and they remain in RAM of the server unless you don't restart MySQL service.

there's no difference in results generated by mysql_connect and mysql_pconnect string.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote