<?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>Jonathan Wijaya Loe&#039;s blog &#187; backslash</title>
	<atom:link href="http://blog.jloe.net/tag/backslash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jloe.net</link>
	<description>A blog about technology blogging, tips and tricks, troubleshooting, and step by step tutorial with specialties in Microsoft .NET, C#, Zend, and PHP. Also includes wonderful and inspiring stories and jokes.</description>
	<lastBuildDate>Mon, 02 May 2011 00:05:10 +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>PHP backslash issue</title>
		<link>http://blog.jloe.net/2009/04/01/php-backslash-issue/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-backslash-issue</link>
		<comments>http://blog.jloe.net/2009/04/01/php-backslash-issue/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 08:42:45 +0000</pubDate>
		<dc:creator>Jonathan Loe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Troubleshoot]]></category>
		<category><![CDATA[backslash]]></category>
		<category><![CDATA[php setting]]></category>

		<guid isPermaLink="false">http://blog.jloe.net/?p=54</guid>
		<description><![CDATA[Recently I just encountered a problematic issue with PHP where every request, no matter it&#8217;s a GET or POST, all the values are somehow escaped with backslash (). Well, I guess this is due to my lack of knowledge on the existence of PHP default settings reside in apache. After some research, I found that [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I just encountered a problematic issue with PHP where every request, no matter it&#8217;s a GET or POST, all the values are somehow escaped with backslash (). Well, I guess this is due to my lack of knowledge on the existence of PHP default settings reside in apache.</p>
<p>After some research, I found that there is a setting in php that escapes all input from GET, POST and COOKIE (gpc). This setting name is called magic_quotes_gpc. Fortunately, this can easily be switched off in .htaccess by inserting the following line.</p>
<pre name="code" class="html">
php_value magic_quotes_gpc 0
</pre>
<p>With this line, my painful problem is finally resolved. Personally, I think this switch should never have been switched on into PHP by default as it&#8217;s quite confusing for inexperience PHP developer. <img src='http://blog.jloe.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jloe.net/2009/04/01/php-backslash-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

