Hi all, newbie here, but im trying to set up a php script to list a diretory of files in a folder and be able to link to those files..
I have worked out the listing of the files from a tutorial, but it just lists the file names.. what i need to work out is how to make thoses listed files link to the actual file in the directory...
this is a link to the dir_list.php file http://www.ajdcolour.com/clients/vision_on/dir_list.php
with the code of my php scrip below.
<?
$dir_name = "/home/mark02/public_html/clients/vision_on/upload/";
$dir = opendir ($dir_name);
$file_list = "<ul>";
while ($file_name = readdir($dir)) {
if (($file_name != ".") && ($file_name != "..")) {
$file_list .= "<li>$file_name";
}
}
$file_list .= "</ul>";
closedir($dir);
?>
any help would be greatly appreciated..
thanks guys