<?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>Thu, 20 Jun 2013 02:58:34 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPBuilder.com: Using SPL Iterators in PHP to Interact with Different Data Types]]></title>
      <guid>http://www.phpdeveloper.org/news/16060</guid>
      <link>http://www.phpdeveloper.org/news/16060</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial from <i>Jason Gilmore</i> about <a href="http://www.phpbuilder.com/columns/spl-iterators/Jason_Gilmore03162011.php3">using the SPL with different data types</a> to more effectively work with them more effectively.
</p>
<blockquote>
One great way to incorporate more OOP into your applications is through the Standard PHP Library (SPL), a powerful yet largely unknown extension made part of the official PHP language with the PHP 5.0 release. [...] In this tutorial I'll introduce you to several of my favorite SPL iterators, providing you with the basis from which you can continue your own exploration. Following several examples, I'll conclude with a brief introduction to other key SPL features.
</blockquote>
<p>
He looks at how to use the ArrayIterator, DirectoryIterator, SimpleXMLIterator and mentions some of the other handlers for things like <a href="http://www.php.net/manual/en/spl.datastructures.php">advanced data structures</a>, <a href="http://www.php.net/manual/en/spl.exceptions.php">exceptions</a> and more <a href="http://www.php.net/manual/en/spl.files.php">file handling</a>.
</p>]]></description>
      <pubDate>Thu, 17 Mar 2011 10:34:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPro.org: Introduction to Standard PHP Library (SPL)]]></title>
      <guid>http://www.phpdeveloper.org/news/11333</guid>
      <link>http://www.phpdeveloper.org/news/11333</link>
      <description><![CDATA[<p>
<i>Kevin Waterson</i> has posted <a href="http://www.phpro.org/tutorials/Introduction-to-SPL-DirectoryIterator.html">a new tutorial</a> to the PHPro.org website today - a pretty comprehensive look at the DirectoryIterator in the Standard PHP Library (SPL).
</p>
<blockquote>
SPL provides a standard set of interfaces for PHP5. The aim of SPL is to implement some efficient data access interfaces and classes for PHP. Functionally it is designed to traverse aggregate structures (anything you want to loop over). These may include arrays, database result sets, xml trees, directory listings or any list at all. Currently SPL deals with Iterators.
</blockquote>
<p>
He looks at functionality like the <a href="http://www.phpro.org/tutorials/Introduction-to-SPL-DirectoryIterator.html#1">Directory Iterator</a>, <a href="http://www.phpro.org/tutorials/Introduction-to-SPL-DirectoryIterator.html#13">getting the file owner</a>, <a href="http://www.phpro.org/tutorials/Introduction-to-SPL-DirectoryIterator.html#20">checking to see if a file is valid</a> and <a href="http://www.phpro.org/tutorials/Introduction-to-SPL-DirectoryIterator.html#26">how to rewind an iterator</a>.
</p>]]></description>
      <pubDate>Mon, 03 Nov 2008 11:19:58 -0600</pubDate>
    </item>
    <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[DevShed: Working with Directory Iterators and Proxy Classes with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/7062</guid>
      <link>http://www.phpdeveloper.org/news/7062</link>
      <description><![CDATA[<p>
DevShed is wrapping up their "Building Proxy Classes with PHP5" series today with <a href="http://www.devshed.com/c/a/PHP/Working-with-Directory-Iterators-and-Proxy-Classes-with-PHP-5/">this last tutorial</a> about working with directory iterators and proxy classes.
</p>
<blockquote>
Since in the first part of the series I showed you how to create a proxy class for processing simple XML strings, in this installment I'm going to teach you how to create a proxy object that can be used in conjunction with the "DirectoryIterator" class that comes with PHP 5.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Working-with-Directory-Iterators-and-Proxy-Classes-with-PHP-5/">start with the definition</a> of a proxy class, the base to start from, and improve its functionality through additional methods like getSize, getPath, and getTimeStamps (using the iterators). The complete the development by pulling the parts together and creating a final example that loops through a given path and displays various info about the directory/files inside (size, names, timestamp, etc).
</p>]]></description>
      <pubDate>Tue, 09 Jan 2007 13:21:05 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Finding Paths, Timestamps and More with the DirectoryIterator Class in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6295</guid>
      <link>http://www.phpdeveloper.org/news/6295</link>
      <description><![CDATA[<p>
DevShed continues its look at the DirectoryIterator functionality in PHP5 with <a href="http://www.devshed.com/c/a/PHP/Finding-Paths-Timestamps-and-More-with-the-DirectoryIterator-Class-in-PHP/">the second part of the series</a> today - "Finding Paths, Timestamps and More with the DirectoryIterator Class in PHP".
</p>
<blockquote>
Are you interested in having at your disposal a quick reference for working with the "DirectoryIterator" class that comes with PHP 5? Then this might be the article that you've been waiting for! Welcome to the second tutorial of the series "A Close Look at the DirectoryIterator Class in PHP 5." Over the course of this set of installments, you'll find complete coverage of the most important methods bundled with this class, and learn how to take advantage of their excellent functionality.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Finding-Paths-Timestamps-and-More-with-the-DirectoryIterator-Class-in-PHP/">cover even more functions</a> in this part:
<ul>
<li>rewind, current, valid
<li>getFileName, isFile
<li>getMTime, getATime, getCTime
<li>getPath, getPathName
</ul>
Each set is supported by code and explaination to help introduce their concepts in a useful way.
</p>]]></description>
      <pubDate>Mon, 18 Sep 2006 08:21:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Main Methods of the DirectoryIterator Class in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/6240</guid>
      <link>http://www.phpdeveloper.org/news/6240</link>
      <description><![CDATA[<p>
DevShed is starting up another new series today, this time looking at <a href="http://www.devshed.com/c/a/PHP/Main-Methods-of-the-DirectoryIterator-Class-in-PHP-5/">the DirectoryIterator methods</a> out of the Standard PHP Library functionality.
</p>
<blockquote>
Because this class might be handy to use in projects where handling directories is a must, in this new series I'll be taking a close look at some of its most important methods. We will explore these methods appropriately in conjunction with the corresponding code samples. 
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Main-Methods-of-the-DirectoryIterator-Class-in-PHP-5/">introduce the class</a>, noting why it's handy to use and where's the best place to use it - including an example. They get into a bit more detail, looking at the key() and current() methods as well as using the rewind() method to reset the pointer for the directory.
</p>]]></description>
      <pubDate>Mon, 11 Sep 2006 08:32:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[JellyandCustard.com: Using DirectoryIterator to List Files in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5430</guid>
      <link>http://www.phpdeveloper.org/news/5430</link>
      <description><![CDATA[<p>
From JellyandCustard.com today, there's a <a href="http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/">good example</a> of creating and using a DirectoryIterator instance to loop through the files in a directory.
</p>
<quote>
<i>
During the days of PHP4, the most common way of showing the files in a directory was like so [opendir, readdir, closedir]. However, if your PHP version has now been upgraded to PHP 5, you can take advantage of DirectoryIterator instead. This class (don't get scared) is part of the SPL library that is now bundled within PHP 5.
</i>
</quote>
<p>
They <a href="http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/">describe the functionality</a> and provide a simple example of its use. Also included are the other functions you can use with the resulting file handles to make for a cleaner interface in your script. They also include two examples of its usage with the output it would give - getting some stats on selected files.
</p>]]></description>
      <pubDate>Tue, 23 May 2006 12:12:12 -0500</pubDate>
    </item>
  </channel>
</rss>
