thanks kpac, it works..
Just one last thing i cant figure out, in the script you posted.. After echo $value
i need to include
; So that it may print each filename to a new line..
<?php
$dir = "upload/";
$files = scandir($dir);
foreach($files as $key => $value)
{
echo $value
;
}
?>
But i cant get it working?? i know this should be simple but ive tryed it a few different ways without any success ??