opendir()
- From: "gec" <gec100@xxxxxxxxx>
- Date: 7 Nov 2006 05:15:10 -0800
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'> </td>");
echo("<td width='100%' class='text1'>");
echo(" <img src='images_easyphp/dossier.gif'
width='23' height='16' align='absbottom'> ");
echo("<a href='$file/' class='text1'>$file</a>");
echo("</td></tr>");
}
}
}
if ($bAuMoinsUnRepertoire == false) {
echo("<tr><td nowrap class='text1'><div align='center'>-
$noDir -</div></td>");
echo("</td></tr>");
}
closedir($rep);
clearstatcache();
?>
worked on php4 and it does nor on php5.
can somebody pls help?
thx :
.
- Prev by Date: Re: 'View as HTML' Conversions
- Next by Date: PHP and dynamic DHTML menus - suggestions
- Previous by thread: Authentification and LDAP (SSO / Single Sign-On)
- Next by thread: PHP and dynamic DHTML menus - suggestions
- Index(es):