<?php /*
dir.php (Current Directory Listing)
by Mark Woodward, July 2002
woody.cowpi.com/phpscripts.html
This script simply list the files in the same directory as the script. (Same as the
dir command in DOS or l in unix.) Folders or directories are not listed.
You can control what types of file extensions that are displayed using $viewExt.
Any filename beginning with 'index.' will not displayed. */
$viewExt = '.mp3|.txt'; // only filenames with these extensions will be displayed
$dirHandle = opendir('.');
while ($file = readdir($dirHandle)) {
if ($file != '.' && $file != '..' && eregi("($viewExt)$",$file) && !eregi("^index.",$file)) {
$stack[] = $file; // append filename to an array
}
}
closedir($dirHandle);
sort($stack);
foreach($stack as $value) {
echo '<a href="'.$value.'">'.$value.'</a><br>'."\n";
}
?>
Is there any way I could protect the links so people can't see full link when they put the cursor over the link?
I want it to be antileech? I have surf the web. Any help would be great.