i got this script but i dont want it to show the ".swf" at the end of every link. How would i change this and if its possible how do i not make it show php files in that dir
<?
// Path to your folder from root
$path = "./";
// Open the folder
$dir_handle = @opendir($path) or die("Unable to open $path");
// Loop through the files
while ($file = readdir($dir_handle)) {
if($file == "." || $file == ".." || $file == "index.php" )
continue;
echo "<a href=\"$file</a><br />";
}
// Close
closedir($dir_handle);
?>