<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Code The World — Directory lister]]></title>
		<link>https://codetheworld.com/viewtopic.php?id=5</link>
		<atom:link href="https://codetheworld.com/extern.php?action=feed&amp;tid=5&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Directory lister.]]></description>
		<lastBuildDate>Sun, 15 Jun 2008 03:03:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Directory lister]]></title>
			<link>https://codetheworld.com/viewtopic.php?pid=26#p26</link>
			<description><![CDATA[<p>Is it possible to have multiple dirs combined with just one output?</p>]]></description>
			<author><![CDATA[null@example.com (hobano)]]></author>
			<pubDate>Sun, 15 Jun 2008 03:03:45 +0000</pubDate>
			<guid>https://codetheworld.com/viewtopic.php?pid=26#p26</guid>
		</item>
		<item>
			<title><![CDATA[Directory lister]]></title>
			<link>https://codetheworld.com/viewtopic.php?pid=5#p5</link>
			<description><![CDATA[<p>Description<br />Displays a hyperlinked list of all the files contained in a specified folder. A really simple way to have your own directory browser, just drop the file in the folder and it will show an index of all files in the directory on your webspace.</p><p>The code<br /></p><div class="codebox"><pre><code>&lt;?

/**
 * Change the path to your folder.
 *
 * This must be the full path from the root of your
 * web space. If you&#039;re not sure what it is, ask your host.
 *
 * Name this file index.php and place in the directory.
 */

    // Define the full path to your folder from root
    $path = &quot;/home/user/public/foldername/&quot;;

    // Open the folder
    $dir_handle = @opendir($path) or die(&quot;Unable to open $path&quot;);

    // Loop through the files
    while ($file = readdir($dir_handle)) {

    if($file == &quot;.&quot; || $file == &quot;..&quot; || $file == &quot;index.php&quot; )

        continue;
        echo &quot;&lt;a href=\&quot;$file\&quot;&gt;$file&lt;/a&gt;&lt;br /&gt;&quot;;

    }

    // Close
    closedir($dir_handle);

?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Casper)]]></author>
			<pubDate>Sat, 22 Dec 2007 07:23:48 +0000</pubDate>
			<guid>https://codetheworld.com/viewtopic.php?pid=5#p5</guid>
		</item>
	</channel>
</rss>
