Search unanswered questions...
Enter a question here...

What is the difference between mysql connect and mysql pconnect in PHP?

In: PHP
[Edit]

When you open a connection with mysql_connect(), the connection to the mysql database will be automatically closed when the script terminates. When you open a connection with mysql_pconnect(), the connection will not be closed and will "persist" for future use.

Improve Answer Discuss the question "What is the difference between mysql connect and mysql pconnect in PHP?" Watch Question

First answer by Pecunia. Last edit by Pecunia. Contributor trust: 43 [recommend contributor]. Question popularity: 16 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > PHP > What is the difference between mysql connect and mysql pconnect in PHP?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Importance of mysql?  How can connect mysql to php?  Can you use mysql without php?  Creating a procedure in mysql?  How do you create mysql tables?  Connec to external mysql server?  Mysql connect vs mysql pconnect?  How do you convert data into mysql fields?  What is the difference between mysql server and mysql?  What is differenc between mysql connect and mysql pconnect?