<?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>Aviblock.com &#187; php.ini</title>
	<atom:link href="http://www.aviblock.com/blog/tag/phpini/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aviblock.com/blog</link>
	<description>My musings on web development</description>
	<lastBuildDate>Thu, 03 Jun 2010 13:40:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing PATH_INFO on bluehost and other shared hosts</title>
		<link>http://www.aviblock.com/blog/2009/08/07/fixing-path_info-on-bluehost-and-other-shared-hosts/</link>
		<comments>http://www.aviblock.com/blog/2009/08/07/fixing-path_info-on-bluehost-and-other-shared-hosts/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 19:54:43 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cgi.fix_pathinfo]]></category>
		<category><![CDATA[Expression Engine]]></category>
		<category><![CDATA[ORIG_PATH_INFO]]></category>
		<category><![CDATA[PATH_INFO]]></category>
		<category><![CDATA[php.ini]]></category>

		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=66</guid>
		<description><![CDATA[The first time I setup an Expression Engine site on bluehost, and removed the index.php file via the .htaccess file, I ran into a problem where every template was redirecting back to the main index template. At the time, I traced this down to fact that the &#8220;segments&#8221; were not getting populated properly.
A brief search [...]]]></description>
			<content:encoded><![CDATA[<p>The first time I setup an Expression Engine site on bluehost, and removed the index.php file via the .htaccess file, I ran into a problem where every template was redirecting back to the main index template. At the time, I traced this down to fact that the &#8220;segments&#8221; were not getting populated properly.<br />
A brief search led to the EE wiki, which advocated swapping out PATH_INFO for ORIG_PATH_INFO. Although not being a fan of hacking core stuff, I was kind of cornered into this, so I went for it. This has been my running solution for the past two years.<br />
Recently, I ran into an issue where the $_SERVER['PHP_SELF'] was not returning anything after the file name. In other words, for http://mysite/foo.php/bar, PHP_SELF should be equal to foo.php/bar.<br />
I spoke with my host about it (a similar host to bluehost), and they said to put the following in the php.ini file: cgi.fix_pathinfo=Off<br />
After, I did this, PHP_SELF worked fine. Unfortunately, I ran into a similar situation like I described at the outset. Then it hit me&#8230;I changed ORIG_PATH_INFO back to PATH_INFO and&#8230;it worked!<br />
So now I listed this as another potential solution in the EE wiki.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aviblock.com/blog/2009/08/07/fixing-path_info-on-bluehost-and-other-shared-hosts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
