IT Community - Software Programming, Web Development and Technical Support

Difference between Regular database connection and Persistent Database Connections?

This is a discussion on Difference between Regular database connection and Persistent Database Connections? within the PHP Programming forums, part of the Web Development category; What is the difference between Regular database connection and Persistent Database Connections? any one pls help me to know about ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-03-2007, 02:46 AM
Falcon Falcon is offline
D-Web Analyst
 
Join Date: Nov 2007
Location: Chennai
Posts: 289
Falcon is on a distinguished road
Default Difference between Regular database connection and Persistent Database Connections?

What is the difference between Regular database connection and Persistent Database Connections? any one pls help me to know about it

Thanks
Falcon
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2007, 05:13 AM
ragavraj ragavraj is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 92
ragavraj is on a distinguished road
Default Re: Difference between Regular database connection and Persistent Database Connection

mysql_pconnect() acts very much like mysql_connect() with two major differences.

First, when connecting, 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.

Second, 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 (mysql_close() will not close links established by mysql_pconnect()).

This type of link is therefore called 'persistent'
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can any one explain about the Persistent Database Connections in php? Falcon PHP Programming 4 11-12-2007 11:56 PM
Difference between database triggers and form triggers vijayanand Database Support 0 09-20-2007 07:41 AM
How can I convert a Access database to a MySQL database? itbarota PHP Programming 2 09-13-2007 10:04 AM
What is the difference between internet connection and GPRS or mobile net connection? sathishkumar Computer Hardware 2 08-11-2007 04:16 AM
What is the difference between Windows programming and database programming? Arun VB.NET Programming 0 07-18-2007 08:58 AM


All times are GMT -7. The time now is 06:47 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0