<?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>KP Solutions &#187; php</title>
	<atom:link href="http://www.kpsolution.com/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kpsolution.com/blog</link>
	<description>Solutions for Day to Day Technical Problems</description>
	<lastBuildDate>Wed, 14 Sep 2011 19:05:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SQL Error: 2006: MySQL server has gone away</title>
		<link>http://www.kpsolution.com/blog/php/sql-error-2006-mysql-server-has-gone-away/81/</link>
		<comments>http://www.kpsolution.com/blog/php/sql-error-2006-mysql-server-has-gone-away/81/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 16:10:17 +0000</pubDate>
		<dc:creator>Ketan Patel</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[connection]]></category>

		<guid isPermaLink="false">http://www.kpsolution.com/blog/?p=81</guid>
		<description><![CDATA[So you got an error &#8220;SQL Error: 2006: MySQL server has gone away&#8221;. Like me if you were wondering where the heck did MySql go away. It was there when the script started. Ok, I am gonna tell you that &#8230; <a href="http://www.kpsolution.com/blog/php/sql-error-2006-mysql-server-has-gone-away/81/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So you got an error &#8220;SQL Error: 2006: MySQL server has gone away&#8221;. Like me if you were wondering where the heck did MySql go away. It was there when the script started.</p>
<p>Ok, I am gonna tell you that there&#8217;s a variable in your mysql configuration that is causing the MySql connection to timeout waiting idle. This could happen in the case, when you start the php script, make a mysql connection and then the script is doing some heavy processing, while the mysql connection made initially is sitting idle doing nothing. So in such cases, the MySql will check for the &#8216;wait_timeout&#8217; variable setting and if the php script didn&#8217;t use the mysql connection for the &#8216;wait_timeout&#8217; interval, the MySql will kill that connection and hence your script will get the &#8216;MySQL server has gone away&#8217; error.</p>
<p>Solution to resolve this issue, two folds:</p>
<ol>
<li>If you make the MySQL connection, then you better use it. If you don&#8217;t want it then the resource needs to be released so others can use it.</li>
<li>Else If you think that you need the connection and it is OK for it to sit idle for that time, then increase the value of &#8216;wait_timeout&#8217; during runtime at the beginning of the script by issuing the SQL query &#8216;<em><strong>SET GLOBAL wait_timeout=60</strong></em>&#8216; in case you want to set it to 60 seconds and then restore it before you exit your script.</li>
</ol>
<p>But, as always, if you increase the &#8216;wait_timeout&#8217; value, check your server performance for another few days and see if there is any negative impact. If no impact then you are OK, but if there is then I would recommend Option 1.</p>
<p>Hope to help,</p>
<p>Ketan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kpsolution.com/blog/php/sql-error-2006-mysql-server-has-gone-away/81/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Unable to load dynamic library php_mysql.dll</title>
		<link>http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/</link>
		<comments>http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 02:37:51 +0000</pubDate>
		<dc:creator>Ketan Patel</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.kpsolution.com/blog/?p=63</guid>
		<description><![CDATA[While trying to setup Apache, PHP and MySql on your development machine or server, you may face several hurdles and one of them would be unable to load the mysql library. On my windows development machine, I got a problem &#8230; <a href="http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While trying to setup Apache, PHP and MySql on your development machine or server, you may face several hurdles and one of them would be unable to load the mysql library. On my windows development machine, I got a problem while trying to load mysql library. I got following error:</p>
<blockquote><p>PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;./php_mysql.dll&#8217; &#8211; The specified module could not be found.\r\n in Unknown on line 0</p></blockquote>
<p>The problem is two fold here:</p>
<ol>
<li>The extension directory path is incorrect</li>
<li>And php module isn&#8217;t able to find libmysql.dll</li>
</ol>
<p>To resolve the issue:</p>
<ol>
<li>Update &#8216;extension_dir&#8217; from &#8216;./&#8217; to &#8216;G:/Server/php/ext/&#8217;</li>
<li>Update the &#8216;PATH&#8217; variable on your computer to include the PHP directory (G:\Server\php) in my case.</li>
</ol>
<p>Hope this will save you time and trouble of finding a proper solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Startup: Unable to load dynamic library php_openssl.dll</title>
		<link>http://www.kpsolution.com/blog/php/php-startup-unable-to-load-dynamic-library-php_openssldll/38/</link>
		<comments>http://www.kpsolution.com/blog/php/php-startup-unable-to-load-dynamic-library-php_openssldll/38/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 20:09:12 +0000</pubDate>
		<dc:creator>Ketan Patel</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.kpsolution.com/blog/?p=38</guid>
		<description><![CDATA[You might get the error: &#8220;PHP Startup: Unable to load dynamic library php_openssl.dll. The operating system cannot run %1&#8220;, when you are trying to start the apache server in the error.log file. Basically what this error is trying to mention &#8230; <a href="http://www.kpsolution.com/blog/php/php-startup-unable-to-load-dynamic-library-php_openssldll/38/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You might get the error: &#8220;<strong>PHP Startup: Unable to load dynamic library php_openssl.dll</strong>. <strong>The operating system cannot run %1</strong>&#8220;, when you are trying to start the apache server in the error.log file.</p>
<p>Basically what this error is trying to mention that there is an issue with your php_openssl.dll and a possible mismatch with other depending libraries. To resolve this, follow the below steps:</p>
<p>1. Rename &#8216;ssleay32.dll&#8217; and &#8216;libeay32.dll&#8217; in c:\windows\system32 to &#8216;ssleay32.dll.old&#8217; and &#8216;libeay32.dll.old&#8217; respectively.</p>
<p>2. Copy &#8216;ssleay32.dll&#8217; and &#8216;libeay32.dll&#8217; from your PHP folder to the system32.</p>
<p>3. Restart the apache webserver.</p>
<p>This should get your problem sorted!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kpsolution.com/blog/php/php-startup-unable-to-load-dynamic-library-php_openssldll/38/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

