What is the difference between mysql_connect and
mysql_pconnect ? Which one is good in terms of performance ?
Answer Posted / modi
mysql_pconnect Open a persistent connection to a MySQL server
First, when connecting, the function would first try to find
a (persistent) link that's already open with the same host,
username and password. If one is found, an identifier for it
will be returned instead of opening a new connection...
Second, the connection to the SQL server will not be closed
when the execution of the script ends. Instead, the link
will remain open for future use (mysql_close() will not
close links established by
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Where is session value stored?
How can you get the size of an image in PHP?
What is basename php?
What type of language is php?
what does this symbol mean in php?
Why session is required?
What is isset in php?
Explain the difference between unlink() and unset()?
Explain Creating and Naming an Array?
Which php global variable is used for uploading a file?
What are the rules to declare a php variables?
What is composer phar?
What is polymorphism in oop php?
Tell me how comfortable are you with writing html entirely by hand?
What is $globals php?