mysql_connect & mysql_pconnect
Thread TagsAdobe Illustrator Adobe InDesign Adobe Photoshop Android Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css digital marketing Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing HTML? Illustrator Internship Training logo Design logo designing Magento Photoshop PHP Programming QA react-native Scroll Website SEO Single Page Website Stock Managment System Testing Typography UI UI/UX Development UI Design UI Designing UI development User Interface UX Design Viewport Web Designing Website Design Wordpress wp
Log in with your username and password
Register for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
- Author Replies
- January 22, 2019 at 10:30 am #52266
mysql_pconnect() makes a persistent connection to the database which means a SQL link that does 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. 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.
You must be register. Registration is 100% free.to reply to this thread.Please or