opendir()



hi,

for some reason this part of script

CODE
<?
$rep=opendir('.');
$bAuMoinsUnRepertoire = false;
while (false !== ($file = readdir($rep))){
if($file != '..' && $file !='.' && $file !=''){
if (is_dir($file)){
$bAuMoinsUnRepertoire = true;
echo("<tr><td nowrap
class='text1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");
echo("<td width='100%' class='text1'>");
echo("&nbsp;&nbsp;<img src='images_easyphp/dossier.gif'
width='23' height='16' align='absbottom'>&nbsp;");
echo("<a href='$file/' class='text1'>$file</a>");
echo("</td></tr>");
}
}
}
if ($bAuMoinsUnRepertoire == false) {
echo("<tr><td nowrap class='text1'><div align='center'>-&nbsp;
$noDir &nbsp;-</div></td>");
echo("</td></tr>");
}

closedir($rep);
clearstatcache();
?>


worked on php4 and it does nor on php5.

can somebody pls help?


thx :

.