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
Does php support multiple inheritances?
How can we get the error when there is a problem to upload a file?
What are php magic quotes?
What is the main difference between require() and include()?
Is salary fixed or variable cost?
How to make a class in php?
How do you use end in python?
What is mysqli_real_escape_string?
Which is better python or php?
What is a php certification?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
i m a B.E,passed out few yrs bak failed to find good job due to less marks now thinkin of a career as PHP developer. is it a lucarative field and wat r career prospects; hv heard dat initial salary is very less bout 6k also most jobs r contrct jobs.pls guide me need ur valuable advice.pls hellppp!! thnx..
Can I write php code in html file?
Will react hooks replace redux?
What is sticky form in php?