Ok i'll show you what i currently have, i wanna make it so it automatically alpabetizes my directories and displays them as links. Once the user clicks on the links then it opens a page with the same thing, only whats under the new directory. I need three layers deep, such as and Tabs/Guitar/A/ directory then opening to a Tabs/Guitar/A/Ataris/ directory and then able to open the txt file and still have the ability to add html around it. Can anyone help me? i'll pay you if you want i just need someway to do this and as soon as possible, or if you can't but you know someone who can please please write me back thanks
Heres the code that i am currently using:
<?
function paulGetFiles($dir) {
$handle = opendir($dir);
while ($file = readdir($handle))
if (($file != ".") && ($file != ".."))
$files[] = $file;
closedir($handle);
sort($files);
return $files;
}
$dir = 'Tabs/Bass';
$files = paulGetFiles($dir);
print "<H1>$dir</H1>";
foreach ($files as $file)
if (is_dir("$dir/$file"))
echo "<a href=\"$dir/$file\">$file</a><br>";
else
echo $file;
?>
this file is located at http://www.myguitartabs.com/bass.php