<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mysql connect &#8211; Programming blog &#8211; website programming blog, blog on website programming .net, java , php and mor</title>
	<atom:link href="https://www.searchenginegenie.com/programming-blog/tag/mysql-connect/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.searchenginegenie.com/programming-blog</link>
	<description></description>
	<lastBuildDate>Fri, 21 Sep 2012 10:17:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>
	<item>
		<title>Mysql_connect Vs Mysql_pconnect</title>
		<link>https://www.searchenginegenie.com/programming-blog/mysql_connect-vs-mysql_pconnect/</link>
					<comments>https://www.searchenginegenie.com/programming-blog/mysql_connect-vs-mysql_pconnect/#respond</comments>
		
		<dc:creator><![CDATA[Camilla]]></dc:creator>
		<pubDate>Mon, 02 Jun 2008 06:26:00 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Mysql connect]]></category>
		<category><![CDATA[Mysql pconnect]]></category>
		<guid isPermaLink="false">http://www.searchenginegenie.com/programming-blog/mysql_connect-vs-mysql_pconnect/</guid>

					<description><![CDATA[There are two different connections available, if you are connecting to a MySQL database in your PHP application, mysql_connect &#8211; which set up a new connection &#8220;each time&#8221; and mysql_pconnect which uses persistent connections. Mysql_connect opens a new connection each time a PHP page is called, and closes the connection down again at the end [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>There are two different connections available, if you are connecting to a MySQL database in your PHP application, mysql_connect &#8211; which set up a new connection &#8220;each time&#8221; and mysql_pconnect which uses persistent connections.</p>
<p>Mysql_connect opens a new connection each time a PHP page is called, and closes the connection down again at the end of the request. It is perfect for pages that do not have a heavy usage.</p>
<p>Mysql_pconnect will also open a new connection when a PHP page is called, but it will NOT close the connection at the end of the request &#8211; instead, it will put aside it in a connection pool so that a succeeding request can persist to use the same connection. It&#8217;s intended for pages that have a heavy usage &#8211; where the resources burn up by opening and closing connections every time might reduce performance.</p>
<p>But mysql_pconnect need some tuning of the servers and you may require limiting the numbers of connections / children and configuring timeouts and how to deal with idle children.</p>
<p>By using this you have some drawbacks as follows.<br />
It does NOT give you sessions.<br />
It does NOT give you a per-site-visitor login.<br />
It does NOT give you any added functionality.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.searchenginegenie.com/programming-blog/mysql_connect-vs-mysql_pconnect/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: www.searchenginegenie.com @ 2024-08-25 09:45:30 by W3 Total Cache
-->