Difference between mysql_connect and mysql_pconnect?
Answer / Lalit Tomar
mysql_connect() establishes a new connection to the MySQL server each time it is called. On the other hand, mysql_pconnect() reuses an existing persistent connection if one is available, or creates a new persistent connection that can be used for future queries. The main advantage of using mysql_pconnect() is faster connection times as it eliminates the overhead of establishing a new connection.
| Is This Answer Correct ? | 0 Yes | 0 No |
When a conditional statement is ended with an endif?
What the limitation of header() function in php?
What is csrf token in php?
What is the use of return in php?
Does php have block scope?
What is cakephp framework?
What are the final class and final method?
What are the advantages of object-oriented programming in php?
What is difference between isset and empty in php?
Why do we use query?
PHP serverside scripting language or client side scripting language>
What is a procedure in php?