<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: List all files in a directory</title>
	<link>http://phpit.net/code/list-files-directory/</link>
	<description>PHPit has dozens of PHP articles, codesnippets and FAQ's.</description>
	<pubDate>Fri, 01 Aug 2008 04:11:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Kevin Loring</title>
		<link>http://phpit.net/code/list-files-directory/#comment-3281</link>
		<pubDate>Thu, 08 Jun 2006 19:01:29 +0000</pubDate>
		<guid>http://phpit.net/code/list-files-directory/#comment-3281</guid>
					<description>IS there any way to create an array of images from a specified directory (Says, /pics/)
then preload each image from the newly created array? I would also need some sort of progress bar to illuminate progression after which a redirect would be required.

Any suggestions?</description>
		<content:encoded><![CDATA[<p>IS there any way to create an array of images from a specified directory (Says, /pics/)<br />
then preload each image from the newly created array? I would also need some sort of progress bar to illuminate progression after which a redirect would be required.</p>
<p>Any suggestions?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Nino</title>
		<link>http://phpit.net/code/list-files-directory/#comment-992</link>
		<pubDate>Fri, 31 Mar 2006 15:48:43 +0000</pubDate>
		<guid>http://phpit.net/code/list-files-directory/#comment-992</guid>
					<description>Doing with foreach is better.

And the while in this case is way to complicated, with booleans and everything.</description>
		<content:encoded><![CDATA[<p>Doing with foreach is better.</p>
<p>And the while in this case is way to complicated, with booleans and everything.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Karl Greenhalgh</title>
		<link>http://phpit.net/code/list-files-directory/#comment-95</link>
		<pubDate>Wed, 09 Nov 2005 22:40:15 +0000</pubDate>
		<guid>http://phpit.net/code/list-files-directory/#comment-95</guid>
					<description>Sorry it edited my code out. in the foreach echo use img src=$photo</description>
		<content:encoded><![CDATA[<p>Sorry it edited my code out. in the foreach echo use img src=$photo
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Karl Greenhalgh</title>
		<link>http://phpit.net/code/list-files-directory/#comment-94</link>
		<pubDate>Wed, 09 Nov 2005 22:37:43 +0000</pubDate>
		<guid>http://phpit.net/code/list-files-directory/#comment-94</guid>
					<description>An example if you want all of a specific file type in a directory.

$GalleryDirectory = "albums/";
foreach (glob("$GalleryDirectory/{*.gif,*.jpg,*.png,*.GIF,*.JPG,*.PNG}", GLOB_BRACE) as $photo)
{
echo
           
    
endHTML;
}</description>
		<content:encoded><![CDATA[<p>An example if you want all of a specific file type in a directory.</p>
<p>$GalleryDirectory = &#8220;albums/&#8221;;<br />
foreach (glob(&#8221;$GalleryDirectory/{*.gif,*.jpg,*.png,*.GIF,*.JPG,*.PNG}&#8221;, GLOB_BRACE) as $photo)<br />
{<br />
echo</p>
<p>endHTML;<br />
}
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: dj</title>
		<link>http://phpit.net/code/list-files-directory/#comment-8</link>
		<pubDate>Mon, 24 Oct 2005 17:28:47 +0000</pubDate>
		<guid>http://phpit.net/code/list-files-directory/#comment-8</guid>
					<description>I'm a novice - i don't kmow how to customize (I assume the red text) for my site.</description>
		<content:encoded><![CDATA[<p>I&#8217;m a novice - i don&#8217;t kmow how to customize (I assume the red text) for my site.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
