Difference between mysql_connect and mysql_pconnect in php?
Answer Posted / aatit
The following are the differences -
- A new connection is established to the database by using
mysql_connect, where as mysql_pconnect opens a persistant
connection to the database.
- mysql_connect can be used to close the connection, where as
mysql_pconnect can not close the connection.
- Database is opened every time when the page is loaded by
mysql_connect. Whereas by using mysql_pconnect, database need
not be connected every time.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is php call function?
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani
Can php run on windows server?
Tell us how to create an array of a group of items inside an html form?
Is php better than java?
What is the use of strip_tags() method?
How to read one character from a file?
What exactly is validating and sanitizing?
Is php difficult to learn?
What is csrf validation?
Which database is best for php?
Is php faster than nodejs?
Explain the installation of PHP on UNIX systems?
What is parent __construct ();?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?