<?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>Microguy Internet Consultant &#187; PHP</title>
	<atom:link href="http://www.microguy.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.microguy.net</link>
	<description>Roaming the Internet Since 1996</description>
	<lastBuildDate>Wed, 21 Dec 2011 14:59:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress 2.9 Sidebar Disappeared</title>
		<link>http://www.microguy.net/2009/12/20/wordpress-2-9-sidebar-disappeared/</link>
		<comments>http://www.microguy.net/2009/12/20/wordpress-2-9-sidebar-disappeared/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 16:38:16 +0000</pubDate>
		<dc:creator>MicroGuy</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microguy.net/?p=2175</guid>
		<description><![CDATA[As you can see, my sidebar has disappeared. This problem is related to a lack of compatibility with my theme and WordPress 2.9. I will be working on this problem over the next few days and will post my solution soon. I will start my quest here.]]></description>
			<content:encoded><![CDATA[<p>As you can see, my sidebar has disappeared. This problem is related to a lack of compatibility with my theme and WordPress 2.9. I will be working on this problem over the next few days and will post my solution soon.  I will start my quest <span style="text-decoration: underline;"><a href="http://justintadlock.com/archives/2009/11/24/sidebar-widget-area-descriptions-in-wordpress-2-9">here</a></span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.microguy.net/2009/12/20/wordpress-2-9-sidebar-disappeared/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP Deprecated Errors in 5.3</title>
		<link>http://www.microguy.net/2009/09/23/php-deprecated-errors-in-5-3/</link>
		<comments>http://www.microguy.net/2009/09/23/php-deprecated-errors-in-5-3/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 17:38:23 +0000</pubDate>
		<dc:creator>MicroGuy</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microguy.net/?p=1700</guid>
		<description><![CDATA[In order to bring one of my billing servers into PCI Compliance, I found it necessary to upgrade PHP to version 5.3. After the upgrade, my Apache error.log file came to life with two new PHP errors.  Soon my tiny little error.log file had grown into a chubby error.log file because of these new PHP [...]]]></description>
			<content:encoded><![CDATA[<p>In order to bring one of my billing servers into PCI Compliance, I found it necessary to upgrade PHP to version 5.3.</p>
<p>After the upgrade, my Apache error.log file came to life with two new PHP errors.  Soon my tiny little error.log file had grown into a chubby error.log file because of these new PHP deprecated errors.   Below, I will show you how to solve two types of errors and also how to suppress the errors if you need a quick &#8220;fix&#8221;.</p>
<p><span id="more-1700"></span></p>
<p><span style="color: #800000;"><strong>1. Error: &#8220;Function set_magic_quotes_runtime() is deprecated&#8221;</strong></span></p>
<p>Quick Fix (not recommended) : Suppress all PHP errors by adding &#8216;error_reporting(0);&#8217; to the script, preferably in the config file if applicable.</p>
<p>Real Fix: In PHP 5, magic quotes are off by default, there is no need to turn them off. The error message will contain the file and line generating this error.  Fire up your text editor and make the following changes to the code.  Oh, and don&#8217;t forget to back up the file before the hackfest begins.</p>
<p style="padding-left: 30px;">Find this code:</p>
<p style="padding-left: 30px;"><strong><span style="color: #3366ff;">set_magic_quotes_runtime(0);</span></strong></p>
<p style="padding-left: 30px;">Replace with this code:</p>
<p style="padding-left: 30px;"><strong><span style="color: #3366ff;"><em>// added to fix notice when upgrading to PHP 5.3<br />
</em></span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #3366ff;"><em> if(version_compare(PHP_VERSION, &#8217;5.3.0&#8242;, &#8216;&lt;&#8217;))<br />
{<br />
set_magic_quotes_runtime(0);<br />
}</em></span></strong></p>
<p><span style="color: #800000;"><strong>2. Error: &#8220;Assigning the return value of new by reference is deprecated&#8221;</strong></span></p>
<p>Quick Fix (not recommended) : Suppress all PHP errors by adding &#8216;error_reporting(0);&#8217; to the script, preferably in the config file if applicable.</p>
<p>Real Fix:  In PHP 5  objects are always passed by reference.  You can remove reference operators and it will still work as you want.  Find the line generating the error and follow these easy instructions.  Backup before the hack attack.</p>
<p style="padding-left: 30px;">Find any code containing the &#8216;&amp;&#8217; symbol and remove it: (for example)</p>
<p style="padding-left: 30px;"><strong><em><span style="color: #3366ff;">$t = &amp; new Fraction( $i );</span></em></strong></p>
<p style="padding-left: 30px;">Replace with this code:</p>
<p style="padding-left: 30px;"><strong><span style="color: #3366ff;"><em>// edit to fix notice when upgrading to PHP 5.3</em></span></strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #3366ff;"><em>$t = new Fraction( $i );</em></span></strong></p>
<p><span style="color: #3366ff;"><span style="color: #000000;">Feel free to post any questions in the comments section. I hope this helps someone save a little time. Enjoy!</span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.microguy.net/2009/09/23/php-deprecated-errors-in-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

