Your Open Source

 
Related Links

PHP

different between mysql_connect or mysql_pconnect

what is different between in mysql_connect and mysql_pconnect ?

Mysql_connect opens a new connection each time a PHP page is called up,
and closes the connection down again at the end of the request.

Mysql_pconnect will also open a new connection when a PHP page is
called up (at any rate, it will the first time after a server reboot),
but it will NOT close the connection at the end of the request -
instead, it will save it in a connection pool so that a subsequent
request can continue to use the same connection.
-----------------------------------------------------------------------

  • hits 47
  • datetime Sep 09 09 02:53:43
  • author Sekar
  • rating

Rating : 12345

Comments

No Reply..

Quick Reply or Comments

Preview
Your Name:
Your Reply :
<> is a code tag
Enter the verification code: