<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP- List All Files In A Directory</title>
	<atom:link href="http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/</link>
	<description></description>
	<lastBuildDate>Sat, 21 Jan 2012 16:15:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Otesto</title>
		<link>http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/#comment-3201</link>
		<dc:creator>Otesto</dc:creator>
		<pubDate>Sat, 07 Jan 2012 14:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=83#comment-3201</guid>
		<description>great code. any ideas to make it search subdirectories</description>
		<content:encoded><![CDATA[<p>great code. any ideas to make it search subdirectories</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/#comment-3157</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 21 Dec 2011 18:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=83#comment-3157</guid>
		<description>Any idea about how this could be done recursively so it can check all the subdirectories too?</description>
		<content:encoded><![CDATA[<p>Any idea about how this could be done recursively so it can check all the subdirectories too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adm1n</title>
		<link>http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/#comment-3025</link>
		<dc:creator>adm1n</dc:creator>
		<pubDate>Tue, 08 Nov 2011 10:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=83#comment-3025</guid>
		<description>Mike, you can use the &quot;str_replace&quot; function.

So before you echo $name, you can do the following:

$name = str_replace(&quot;.html&quot;,&quot;&quot;,str_replace(&quot;_&quot;,&quot;&quot;,$name));</description>
		<content:encoded><![CDATA[<p>Mike, you can use the &#8220;str_replace&#8221; function.</p>
<p>So before you echo $name, you can do the following:</p>
<p>$name = str_replace(&#8220;.html&#8221;,&#8221;",str_replace(&#8220;_&#8221;,&#8221;",$name));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/#comment-3023</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 07 Nov 2011 23:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=83#comment-3023</guid>
		<description>Great piece of code! This works great for me, I changed .jpg to .html. The only thing I need help with is removing the _ and .html portion of the filename.

In my echo I have:

echo &quot;&lt;a href=&#039;$link&#039; rel=&quot;nofollow&quot;&gt;$name&lt;/a&gt;&quot;;

How can I have $link strip out the _ and .html portion and have $name just display the filename? Thanks!</description>
		<content:encoded><![CDATA[<p>Great piece of code! This works great for me, I changed .jpg to .html. The only thing I need help with is removing the _ and .html portion of the filename.</p>
<p>In my echo I have:</p>
<p>echo &#8220;<a href='$link' rel="nofollow">$name</a>&#8220;;</p>
<p>How can I have $link strip out the _ and .html portion and have $name just display the filename? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Purcell (08JPurcell)</title>
		<link>http://www.brightcherry.co.uk/scribbles/php-list-all-files-in-a-directory/#comment-3007</link>
		<dc:creator>Joshua Purcell (08JPurcell)</dc:creator>
		<pubDate>Thu, 03 Nov 2011 12:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=83#comment-3007</guid>
		<description>Actually I just realised I made a Typo in the code, works now :) THANKS!!!!!!</description>
		<content:encoded><![CDATA[<p>Actually I just realised I made a Typo in the code, works now <img src='http://www.brightcherry.co.uk/scribbles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  THANKS!!!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

