If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > f on one system have user connect as pconnect with new connect...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-11, 05:08
wungexh wungexh is offline
Registered User
 
Join Date: Nov 2011
Posts: 19
f on one system have user connect as pconnect with new connect...

f have a website use pconnect function(by another programer.)?
I can use new (non pconnect)connect function() with same user login name by pconnect.


please explain me. thank you.
Reply With Quote
  #2 (permalink)  
Old 11-23-11, 05:54
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
pconnect allows for pooling / sharing of connections, through a Persistent Connection
it can reduces the overhead in running a script, as the script doesn't have to instantiate the connection to the DB
pconnect should be used sparingly, but if your script is connecting to the same database host using the same userid and password. if you know

if pconnect cannot find an existing connection it will create one in the same way as connect.

see PHP: Persistent Database Connections - Manual
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On