$path = "../client";
$ptrrep = dir($path);
chdir($ptrrep->path);
while($file=$ptrrep->read())
{
if(!is_dir($file) && $file!= "." && $file!= "..")
{
$down_file = "$path/"."$file";
print "<a href=$down_file>$file</a>";
}
}
--> I browse my directory
--> And display the file that exist
--> Make a link on each to download it.
Everything is nice EXECPT when the file have "space" in is name.
exple: "document file.doc"
Will display "document file.doc"
But will download "document" !!! 😉
Any idea to fixe that?
Thanks. Polo