Difference between mysql_connect and mysql_pconnect? - Aidephp .bouee.net - Questions/réponses 100% php
  • S'enregistrer
Bienvenue sur Aidephp le site de Questions/réponses 100% php.
Vous pouvez poser vos questions gratuitement et vous recevrez en échange les réponses des membres de notre communauté.

Difference between mysql_connect and mysql_pconnect?

0 votes

Hello Guys,

There is a good page in the php manual on the subject, in short mysql_pconnect() makes a persistent connection to the database which means a SQL link that do not close when the execution of your script ends. mysql_connect()provides only for the databasenewconnection while using mysql_pconnect , the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection. Web Video Marketing is a value add to your sales funnel and a great marketing collateral for small business to large companies. The connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use.

Thanks

asked Il y a2 mois par JoeClark (6,780 points)

Connectez-vous ou créez un compte pour répondre à cette question.

0 Réponses

Pas de question sur le même sujet trouvée