<?php
$path = "/site/www/";
$dir_handle = @opendir($path) or die("Unable to open $path");
while ($file = readdir($dir_handle))
{
if($file!="." && $file!=".." && is_dir($file)!=1 && $file!="Index.php")
$file = substr($file, 0, -4);
echo "<a href='$file'>$file</a><br/>";
}
closedir($dir_handle);
?>
This works but also includes the things I didn't want included. I am not sure how to do this. Any ideas or assistance? ( also dont want it to replace the Links in the Href