I am using a thumbnail script and it gets the images from a directory, the images are found in ../../clients/$dir but i dont want to show the directory structure, in the images name so how can i specify the directory with out making the structure part of the name?
Code: Select all
$dir = $_GET['login'];
$pricing = $_GET['pricing'];
$NBFile=0;
$dir ="../../clients/$dir";
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
//if (substr($file, strlen($file)-3, 3)=="jpg" ) {
$FileArray[] = $dir."/".$file;
$NBFile=$NBFile+1;
//}
}
}
}
closedir($handle);
Cheers
Drew