i want to read a directories contents and create links so you can download the file - mpeg files i have this but the links wont work??
$PATH = $_ENV['DOCUMENT_ROOT'];
$d=$PATH.'/my_files/'; #define which dir you want to read
$dir = opendir($d); #open directory
while ($f = readdir($dir)) { #read one file name
echo "<a href=\"$d.$f\">$f</a><br>\n";
}
i get this error
Not Found
The requested URL /home/tbobker/public_html/my_files/.shemalesuperstars114_3.00.mpg was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.moviefrenzy.co.uk Port 80