PHP - is_dir

 
Vista:

is_dir

Publicado por Raul (4 intervenciones) el 30/04/2003 11:26:02
Quiero utilizar la función is_dir.
Cuando ejecuto este script solo me muestra los directorios "." y ".." Si tienes otros directorios no los muestra.

<html>
<head>
</head>
<body>
Directory:
<?php
$handle = opendir('C:\LastPatch\20021114');
while ($file = readdir($handle))
{
if (is_dir("$file"))
{
echo "<br>";
echo "$file";
}
}
closedir($handle);
?>
</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder