<?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"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; PATH_INFO</title>
	<atom:link href="http://www.deanlee.cn/tag/path_info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Fri, 30 Dec 2011 13:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>WordPress 2.5 Error on Windows IIS:Undefined index: PATH_INFO</title>
		<link>http://www.deanlee.cn/wordpress/wordpress-25-error-on-windows-iis-undefined-index-path_info/</link>
		<comments>http://www.deanlee.cn/wordpress/wordpress-25-error-on-windows-iis-undefined-index-path_info/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 04:11:37 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[IIS]]></category>

		<category><![CDATA[PATH_INFO]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/windows/wordpress-25-error-on-windows-iisundefined-index-path_info-3/</guid>
		<description><![CDATA[After upgrading to WordPress version 2.5 on Windows IIS,you may get the following errors:

Notice: Undefined index: PATH_INFO in (path)\wp-settings.php on line 74
Notice: Undefined index: PATH_INFO in (path)\wp-settings.php on line 77 
to solve this problem,open file wp-settings.php,goto line 71 and replace the following code:

if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] )
	$_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO'];
else
	$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'];
with:

if (empty($_SERVER['PATH_INFO']))
	$_SERVER['REQUEST_URI'] [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to WordPress version 2.5 on Windows IIS,you may get the following errors:</p>
<pre>
Notice: Undefined index: PATH_INFO in (path)\wp-settings.php on line 74
Notice: Undefined index: PATH_INFO in (path)\wp-settings.php on line 77 </pre>
<p>to solve this problem,open file wp-settings.php,goto line 71 and replace the following code:</p>
<pre class="prettyprint">
if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] )
	$_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO'];
else
	$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'];</pre>
<p>with:</p>
<pre class="prettyprint">
if (empty($_SERVER['PATH_INFO']))
	$_SERVER['REQUEST_URI'] = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/';
else if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] )
	$_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO'];
else
	$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'];</pre>
<p>this will resolve that issue,Your can also download an already modified version of wp-setting.php <a href="http://www.deanlee.cn/downloads/wp-settings.zip">from here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/wordpress/wordpress-25-error-on-windows-iis-undefined-index-path_info/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

