No Cluster,
Código PHP:
$handle=opendir($_SERVER['DOCUMENT_ROOT'].'/2005');
while ($file = readdir($handle)) {
echo $file.'<BR>';
}
closedir($handle);
Imprime los files, pero esto:
Código PHP:
$handle=opendir($_SERVER['DOCUMENT_ROOT'].'/2005');
while ($file = readdir($handle)) {
if(is_file($file)){echo $file.'<BR>';}
}
closedir($handle);
No imprime nada. Al = que:
Código PHP:
$handle=opendir($_SERVER['DOCUMENT_ROOT'].'/2005');
while ($file = readdir($handle)) {
if(is_file($handle)){echo $file.'<BR>';}
}
closedir($handle);
al = que si dejo is_file().
Pero en el directorio si hay los files ****.php
Eso es lo que no me funciona.