hey
i have seen somewhere before the possibility of scanning through every file in a folder, and then displaying it on a page
i know how to loop through the files (using something like the below)
<?
$num= count($array);
for($i=0;$i<$num;$i++) {
$filename = str_replace(".jpg", "", $array[$i]); // Assuming $array contains something like '1087.jpg'
echo $filename."<br>";
}
?>
hopefully that script will take the array of all the files found in that directory and output the name of the file without the extension
please could someone advise me on how i could get an array of all the files in a specific folder
thanks