PHP help...

They have: 111 posts

Joined: Jun 2006

What is the difference between mysql_connect() and mysql_pconnect() in PHP?

SBalan Group
http://www.sbalanprojects.com/

Busy's picture

He has: 6,151 posts

Joined: May 2001

basically
mysql_connect -- Open a connection to a MySQL Server
mysql_pconnect -- Open a persistent connection to a MySQL server

They have: 111 posts

Joined: Jun 2006

Thanks Busy.

SBalan Group
http://www.sbalanprojects.com/

Busy's picture

He has: 6,151 posts

Joined: May 2001

I forgot to add a lot of web hosts are not allowing mysql_pconnect anymore, was used a lot in free forums etc and can be a security risk and resource hog

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.