<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 08:06:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Joshua Thijssen's Blog: php 5.4 + htrouter: Your personal Apache 2.2 compatible server]]></title>
      <guid>http://www.phpdeveloper.org/news/17296</guid>
      <link>http://www.phpdeveloper.org/news/17296</link>
      <description><![CDATA[<p>
<i>Joshua Thijssen</i> has a new post to his blog today about a feature of the upcoming PHP 5.4 release, the built-in web server, and <a href="http://www.adayinthelifeof.nl/2011/12/22/php-5-4-htrouter-your-personal-apache-2-2-compatible-server/">a handy way to reproduce .htaccess functionality</a> with the help of a simple PHP script - <a href="https://github.com/jaytaph/htrouter">htrouter</a>.
</p>
<blockquote>
The problem with the new PHP 5.4 internal web-server is that it isn't Apache. Thus it does not know anything about .htaccess. Even when you have defined your .htaccess to do authentication, the internal PHP web-server will ignore it, while in production, the authentication will be needed (if you will be running Apache, of course). Also, you need to reroute everything manually through your app_dev.php, so your URL's don't really match the way they will be on your production.
</blockquote>
<p>
He introduces the PHP web server quickly, just showing a sample command line call to start it up and to point it at a certain PHP file as a "boostrap". With the help of his <a href="https://github.com/jaytaph/htrouter">htrouter</a> script, though, you can use "modules" similar to those in Apache. He already has the HTTP auth stuff working and more is to come.
</p>]]></description>
      <pubDate>Fri, 23 Dec 2011 08:27:10 -0600</pubDate>
    </item>
  </channel>
</rss>
