<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Zend Framework: Router Again</title>
	<atom:link href="http://akrabat.com/2006/03/15/zend-framework-router-again/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/2006/03/15/zend-framework-router-again/</link>
	<description>Developing PHP and XUL Software in the Real World</description>
	<pubDate>Thu, 21 Aug 2008 22:49:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Duane Day</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-127</link>
		<dc:creator>Duane Day</dc:creator>
		<pubDate>Wed, 12 Apr 2006 14:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-127</guid>
		<description>Thanks Rob.  Just an FYI -- if you're using ZF on IIS you'll obviously need to get around needing $_SERVER['REQUEST_URI'].  If you're going to use ISAPI_Rewrite trying to get REQUEST_URI by using $_SERVER['PHP_SELF'] (like most IIS workarounds do it) won't work because what you need is what was requested, not the file that you're running in.

Anyway, it turns out that ISAPI_Rewrite sets a $_SERVER variable for you called HTTP_X_REWRITE_URL which is just what you need.  I put this code at the top of Router.php and everything seems to be working:

if (!isset($_SERVER['REQUEST_URI'])) {
    $path = $_SERVER['HTTP_X_REWRITE_URL'];
} else {
    $path = $_SERVER['REQUEST_URI'];
}</description>
		<content:encoded><![CDATA[<p>Thanks Rob.  Just an FYI &#8212; if you're using ZF on IIS you'll obviously need to get around needing $_SERVER['REQUEST_URI'].  If you're going to use ISAPI_Rewrite trying to get REQUEST_URI by using $_SERVER['PHP_SELF'] (like most IIS workarounds do it) won't work because what you need is what was requested, not the file that you're running in.</p>
<p>Anyway, it turns out that ISAPI_Rewrite sets a $_SERVER variable for you called HTTP_X_REWRITE_URL which is just what you need.  I put this code at the top of Router.php and everything seems to be working:</p>
<p>if (!isset($_SERVER['REQUEST_URI'])) {<br />
    $path = $_SERVER['HTTP_X_REWRITE_URL'];<br />
} else {<br />
    $path = $_SERVER['REQUEST_URI'];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-125</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Tue, 11 Apr 2006 21:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-125</guid>
		<description>I'm not using ZF on IIS yet. My current httpd.ini files for ISAPI_Rewrite looks like this:


[ISAPI_Rewrite]

RewriteRule (.*.jpg)                 $1 [L]
RewriteRule (.*.png)                 $1 [L]
RewriteRule (.*.gif)                 $1 [L]
RewriteRule (.*.css)                 $1 [L]
RewriteRule (.*.js)                  $1 [L]

RewriteRule (.*)                    /index.php</description>
		<content:encoded><![CDATA[<p>I'm not using ZF on IIS yet. My current httpd.ini files for ISAPI_Rewrite looks like this:</p>
<p>[ISAPI_Rewrite]</p>
<p>RewriteRule (.*.jpg)                 $1 [L]<br />
RewriteRule (.*.png)                 $1 [L]<br />
RewriteRule (.*.gif)                 $1 [L]<br />
RewriteRule (.*.css)                 $1 [L]<br />
RewriteRule (.*.js)                  $1 [L]</p>
<p>RewriteRule (.*)                    /index.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duane Day</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-124</link>
		<dc:creator>Duane Day</dc:creator>
		<pubDate>Tue, 11 Apr 2006 21:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-124</guid>
		<description>James, I'd be interested in seeing your ISAPI_Rewrite httpd.ini file.  

Also, I'm trying to get Zend Framework working for a project I'm doing on IIS.  Between redirection and REQUEST_URI not being available on IIS I can't seem to get it to work for me.  Is anyone using Zend Framework on IIS?</description>
		<content:encoded><![CDATA[<p>James, I'd be interested in seeing your ISAPI_Rewrite httpd.ini file.  </p>
<p>Also, I'm trying to get Zend Framework working for a project I'm doing on IIS.  Between redirection and REQUEST_URI not being available on IIS I can't seem to get it to work for me.  Is anyone using Zend Framework on IIS?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-62</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Tue, 21 Mar 2006 09:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-62</guid>
		<description>That'd be nice. Though as my client has just got to Win2k3, I don't suppose they'll touch Vista server until 2009!</description>
		<content:encoded><![CDATA[<p>That'd be nice. Though as my client has just got to Win2k3, I don't suppose they'll touch Vista server until 2009!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simham_uk</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-61</link>
		<dc:creator>simham_uk</dc:creator>
		<pubDate>Sat, 18 Mar 2006 17:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-61</guid>
		<description>It might be worth looking at IIS 7 since the architecture is supposidly changing to be more like apache, such as modules and the like...this may mean that there is a mod_rewrite builtin for IIS on its way, not sure though.  I'd recommend checking out Channel9 for more info - Here's a link to a preview of IIS7 by the IIS Program Manager http://channel9.msdn.com/ShowPost.aspx?PostID=89540#89540. Personally I've used IIS as a development platform so cant really comment from that point of view.</description>
		<content:encoded><![CDATA[<p>It might be worth looking at IIS 7 since the architecture is supposidly changing to be more like apache, such as modules and the like&#8230;this may mean that there is a mod_rewrite builtin for IIS on its way, not sure though.  I'd recommend checking out Channel9 for more info - Here's a link to a preview of IIS7 by the IIS Program Manager <a href="http://channel9.msdn.com/ShowPost.aspx?PostID=89540#89540" rel="nofollow">http://channel9.msdn.com/ShowPost.aspx?PostID=89540#89540</a>. Personally I've used IIS as a development platform so cant really comment from that point of view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-56</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 15 Mar 2006 16:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-56</guid>
		<description>True that. I develop many sites on my localhost and I have to either condition them out of the rewrite rules or disable the rules altogether when working on something else. I also noticed that with ISAPI_Rewrite my server runs slow as sin.</description>
		<content:encoded><![CDATA[<p>True that. I develop many sites on my localhost and I have to either condition them out of the rewrite rules or disable the rules altogether when working on something else. I also noticed that with ISAPI_Rewrite my server runs slow as sin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-55</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Wed, 15 Mar 2006 16:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-55</guid>
		<description>Yeah, I've used ISAPI_Rewrite Lite but it applies to all websites on the server. This obviously isn't a problem  in Windows XP Pro as you only have one site, but it is in W2K3 server...

(and I'm cheap!)</description>
		<content:encoded><![CDATA[<p>Yeah, I've used ISAPI_Rewrite Lite but it applies to all websites on the server. This obviously isn't a problem  in Windows XP Pro as you only have one site, but it is in W2K3 server&#8230;</p>
<p>(and I'm cheap!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-54</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 15 Mar 2006 16:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-54</guid>
		<description>ISAPI_Rewrite Lite is free, and I have it installed on my system. One drawback (aside from not having 1:1 compatability with Rewrite rules) is that the Lite version only allows you to have one httpd.ini file to specify rules. So if you are developing more than just something in one directory you need to write conditions to have the rule(s) not apply to those directories. If anyone is interested I can post the httpd.ini file that I made that is basically the standard .htaccess file used with Zend Framework :)</description>
		<content:encoded><![CDATA[<p>ISAPI_Rewrite Lite is free, and I have it installed on my system. One drawback (aside from not having 1:1 compatability with Rewrite rules) is that the Lite version only allows you to have one httpd.ini file to specify rules. So if you are developing more than just something in one directory you need to write conditions to have the rule(s) not apply to those directories. If anyone is interested I can post the httpd.ini file that I made that is basically the standard .htaccess file used with Zend Framework :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-53</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Wed, 15 Mar 2006 13:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-53</guid>
		<description>Zend Studio 5 mainly because of it's autocomplete system. I also use Emacs and UltraEdit. At work, we use a mixture of Zend Studio and Eclipse with TruStudio's plugin.</description>
		<content:encoded><![CDATA[<p>Zend Studio 5 mainly because of it's autocomplete system. I also use Emacs and UltraEdit. At work, we use a mixture of Zend Studio and Eclipse with TruStudio's plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://akrabat.com/2006/03/15/zend-framework-router-again/#comment-52</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 15 Mar 2006 12:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/15/zend-framework-router-again/#comment-52</guid>
		<description>Just out of interest, what editor do you use for PHP?</description>
		<content:encoded><![CDATA[<p>Just out of interest, what editor do you use for PHP?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
