21.02.2011, 15:27
(
Последний раз редактировалось Jantjuh; 21.02.2011 в 18:03.
)
Edit: Thanks guys (Kwarde) it is working now! 
Hey guys,
I'm using the following PHP script:
This script will show the files from the directory called: 'uploads' on a webpage. But now I have a problem. When I click a file in the list, Internet says: Not found. But when I go to the path of the file (www.blahblah.com/upload/blahblah.jpg) Then it DOES work :S
Does anybody know how I can edit this script so it will download the file whem you click it?
Thanks!
-J

Hey guys,
I'm using the following PHP script:
Код:
<?php if ($handle = opendir('uploads')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "<u><a href=\"$file\">$file</a></u><br />"; } } closedir($handle); } ?>
Does anybody know how I can edit this script so it will download the file whem you click it?
Thanks!
-J