database connection question..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

database connection question..

Post by pleigh »

mysql_connect and mysql_pconnect are two different php functions for db connections...correct me if i'm wrong...what is your preference in connecting to mysql database??
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I think you should start with mysql_connect() and use it until you have a site that needs mysql_pconnect().
(#10850)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

arborint wrote:I think you should start with mysql_connect() and use it until you have a site that needs mysql_pconnect().
I always thought it was the opposite, that using pconnect() is prefered for a small user base.. while normal connect() is prefered for higher volume sites. :oops:
Post Reply