What is the difference between mysql_connect and
mysql_pconnect ? Which one is good in terms of performance ?
Answer Posted / brijendra
mysql_connect opens a normal connections to mysql database.
mysql_pconnect opens a persistant connection i.e. if there
is any connection open in the script it will use that
connection not making a new connection each time.
at very high traffic enviornment mysql_connect provides
better performance
| Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
How can you make a connection with mysql server using php?
What is encapsulation in php with example?
What is difference between static and constant in php?
How to execute an sql query?
What backslash character will match whitespace?
How to retrieve values out of an array?
What is the difference between Split and Explode in PHP?
What is difference between mysql_connect and mysqli_connect?
What is T_PAAMAYIM_NEKUDOTAYIM?
What are the differences between GET and POST methods?
What is symfony php?
Applications written to provide a GUI shell for Unix and Linux are called
Explain me what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
How to terminate the execution of a script in PHP?
What is the difference between rest and soap?