Código PHP:
global $dirthumb;
$path = getcwd();
$pathtodir = substr(substr($path,0,-1),0,strrpos($path,"\\"));
$files = array();
if(is_dir($pathtodir.$dirthumb)){
if($handle = opendir($pathtodir.$dirthumb)){
while($file = readdir($handle) != false){
if($file!="." && $file!=".."){
$files[] = $file;
}
}
closedir($handle);
}
}
sort($files);
Cita:
luego dentro de la carpeta thumbs tengo todo esto: D:\wamp\www\morgandir\fotos\thumbs
Cita:
por lo que algo debería tener el arreglo $files[] o me equivoco ?? thumbs/
foto1.jpg
foto2.jpg
foto3.jpg
foto4.jpg
foto5.jpg
foto1.jpg
foto2.jpg
foto3.jpg
foto4.jpg
foto5.jpg
Alguna sugerencia.
Salu2
