<?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>Fri, 04 Jul 2008 15:19:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Builder.com.au: How do I...recursively scan directories with PHP's DirectoryIterators?]]></title>
      <guid>http://www.phpdeveloper.org/news/10430</guid>
      <link>http://www.phpdeveloper.org/news/10430</link>
      <description><![CDATA[<p>
Builder.com.au has a <a href="http://www.builderau.com.au/program/php/soa/How-do-I-recursively-scan-directories-with-PHP-s-DirectoryIterators-/0,339028448,339289935,00.htm?feed=rss">new tutorial</a> posted today talking about the use if Iterators (from PHP's SPL) to recurse down through directories on your local drive.
</p>
<blockquote>
One of PHP5's most interesting new features is the addition of Iterators, a collection of ready-made interfaces designed to help in navigating and processing hierarchical data structures. These Iterators significantly reduce the amount of code required to process an XML document tree or a file collection.
</blockquote>
<p>
They give three examples - two basic ones showing a simple use of the DirectoryIterator and RecursiveDirectoryIterator and another slightly more complex one showing how to get information from the recursive iteration as it goes down.
</p>]]></description>
      <pubDate>Wed, 18 Jun 2008 07:55:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Test Runner Improvement in PHPUnit 3.3]]></title>
      <guid>http://www.phpdeveloper.org/news/9956</guid>
      <link>http://www.phpdeveloper.org/news/9956</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has posted some details about <a href="http://sebastian-bergmann.de/archives/772-Test-Runner-Improvement-in-PHPUnit-3.3.html">an update</a> that's been made to the test runner for the PHPUnit (3.3) unit testing suite - an allowance for directories instead of just files on the command line.
</p>
<blockquote>
Given a directory, the test runner will recursively scan the directory for *Test.php files, build a test suite out of the *Test classes, and run it.
</blockquote>
<p>
<a href="http://www.phpunit.de/">PHPUnit</a> is framework that makes writing tests for your code easy and also includes functionality to run the tests and analyze their results.
</p>]]></description>
      <pubDate>Fri, 11 Apr 2008 09:46:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lars Strojny's Blog: New magic constant in PHP 5.3]]></title>
      <guid>http://www.phpdeveloper.org/news/9691</guid>
      <link>http://www.phpdeveloper.org/news/9691</link>
      <description><![CDATA[<p>
In <a href="http://usrportage.de/archives/878-New-magic-constant-in-PHP-5.3.html">this new blog post</a> today, <i>Lars Strojny</i> talks about a new magic constant that will be joining its brothers in the upcoming PHP 5.3 release - __DIR__.
</p>
<blockquote>
In PHP 5.3 there will be another magic constant __DIR__. [...] To allow this, the internal function php_dirname() has been moved in the Zend Engine and is now called zend_dirname(). Nevertheless an alias still exists.
</blockquote>
<p>
__DIR__ will join the other constants (like __LINE__ and __FUNCTION__) to help give the currently running script a little introspection for things like its filename, what class it's currently in and now, what directory the file currently lives in.
</p>]]></description>
      <pubDate>Fri, 22 Feb 2008 15:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Danne Lundqvist's Blog: Setting up a development environment with apache-2.2.6]]></title>
      <guid>http://www.phpdeveloper.org/news/9077</guid>
      <link>http://www.phpdeveloper.org/news/9077</link>
      <description><![CDATA[<p>
<i>Danne Lundqvist</i> has a <a href="http://www.dotvoid.com/view.php?id=80">helpful hint</a> for anyone looking to set up a development environment (he did it on his local machine, but it'd apply for remote setups too) with Apache 2.2.6.
</p>
<blockquote>
I downloaded Apache 2.2.6, PHP 5.2.4 and MySQL 5.0.45. I compiled and installed them and finally added a few virtual hosts. None of the vhosts worked. They all gave me [an error]. I had missed that apache now ships with a slightly different configuration for the / directory 
</blockquote>
<p>
He includes the fix for this, what he thinks is a better way to handle it - setting the Directory value to only the directory Apache needs to allow.
</p>]]></description>
      <pubDate>Tue, 20 Nov 2007 08:44:00 -0600</pubDate>
    </item>
  </channel>
</rss>
