Forum Moderators: coopster

Message Too Old, No Replies

mysql_connect Vs mysql_pconnect

Which is more efficient and resourcing saving

         

kunwarbs

10:49 am on Jun 15, 2006 (gmt 0)

10+ Year Member



I have a high traffic website with over 5000 unique visitors (per day) interacting with my Database. I was wandering if i should use mysql_connect or mysql_pconnect to save my server resources and efficient queries.

eelixduppy

11:07 am on Jun 15, 2006 (gmt 0)



mysql_pconnect is used if you are going to have many connections to mysql in a short amount of time. Instead of having 1000 connections, you can just have 1 persistent connection. You can find tons of information here [php.net]