Hi, all

the program is here:
while $path='.' it works
while $path changes to "c:" or anything else,the results of readdir() are either 'dir' nor 'file'. but what are they?
please help me??
<?
function dirout($pa)
{
$han=opendir($pa);
while($file=readdir($han)){
if($file=='.' or $file=='..') {continue;}
if(is_dir($file)){
echo"$filen";
}elseif(is_file($file))
{
echo "$filen";
}else
echo "elsen";
}
closedir($han);
}
$path="c:";
if(is_dir($path))
dirout($path);
else
echo "$path is not a path";
?>