<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Directory Listings, list files and subfolder using php</title>
		<description>Comments for Directory Listings, list files and subfolder using php at http://www.xfunda.com , comment 1 to 3 out of 3 comments</description>
		<link>http://www.xfunda.com</link>
		<lastBuildDate>Fri, 10 Sep 2010 08:28:07 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title>ignore temp files from MS-Office and only show  DOC PDF XLS</title>
			<link>http://www.xfunda.com/index.php?option=com_content&amp;view=article&amp;id=1:create-a-spectacular-grass-text-effect-in-photoshop&amp;catid=&amp;Itemid=44#comment-48</link>
			<description>Here is another variant which ignores temp files starting with ~$ and only shows specific documents:

function DirDisply() { 

$TrackDir=opendir(&quot;your_directory&quot;); 
$RealDir=&quot;your_directory&quot;;
$IgnoreFile=&quot;~$&quot;;

while ($file = readdir($TrackDir)) {

if (strpos($file, '.doc')&gt;0 || strpos($file, '.pdf')&gt;0 || strpos($file, '.xls')&gt;0) 
{
if (substr($file,0,2)==$IgnoreFile) { } else 
{
print &quot;&quot;;
print &quot;$file &quot;;
print &quot;  &quot;.filetype($file).&quot;&quot;; 
} }
else { }
}
closedir($TrackDir); 
return; 
} 
 - Peter Geier</description>
			<pubDate>Wed, 18 Mar 2009 19:07:10 +0100</pubDate>
		</item>
		<item>
			<title>Changed the html to be correct</title>
			<link>http://www.xfunda.com/index.php?option=com_content&amp;view=article&amp;id=1:create-a-spectacular-grass-text-effect-in-photoshop&amp;catid=&amp;Itemid=44#comment-28</link>
			<description>This will make the html aspect of this code correct and html compliant (target=_blank is not xhtml, would need additional javascript to complete this aspect, but then who wants to open a new page from a local directory??).  still maybe it would be better as a list then there would be fewer elements.  For formatting, just add a class to the table and format with CSS as normal. no-inline styles needed.

Also removed htaccess and ds_store from the listing also, as 99% of people do not want to browser them.

function DirDisply() {

$TrackDir=opendir(&quot;.&quot;);

while (false !== ($file = readdir($TrackDir))) {
print &quot;&quot;;
if ($file == &quot;.&quot; || $file == &quot;..&quot; || $file == &quot;.htaccess&quot; || $file == &quot;.DS_Store&quot;) { }
else {
print &quot;$file&quot;;
print &quot;  &quot;.filetype($file).&quot;&quot;;
}
print &quot;&quot;; - andy</description>
			<pubDate>Thu, 18 Dec 2008 20:43:31 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.xfunda.com/index.php?option=com_content&amp;view=article&amp;id=1:create-a-spectacular-grass-text-effect-in-photoshop&amp;catid=&amp;Itemid=44#comment-26</link>
			<description>Excellent programme but it is better to add upload file and view the contents dynamically - suresh</description>
			<pubDate>Sat, 22 Nov 2008 02:37:47 +0100</pubDate>
		</item>
	</channel>
</rss>
