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
Explain $_FILES Superglobal Array?
How many open modes available when a file open in PHP?
Where to put php files in apache server?
What is the role of php?
What is polymorphism?
What is cookie and session in php?
List types of array are available in php?
How should a model be structured in mvc?
What is difference between sql and php?
What happens when submit button is clicked?
What is stdclass in php?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
Is php difficult to learn?
What is PHP? Who is the father or inventor of PHP?
What is user defined function in php?