Hi,
I have this script to list files in the same directory;
<?
$dir=opendir(". ");
readdir($dir);
readdir($dir);
while ($conteudo = readdir($dir)) {
echo "<a href=./$conteudo>$cont eudo</a><br>";
}
closedir($dir);
?>
How can I remove from the list two files, index.php and .htaccess. I
tried using 'if' but without success.
Thanks...
I have this script to list files in the same directory;
<?
$dir=opendir(". ");
readdir($dir);
readdir($dir);
while ($conteudo = readdir($dir)) {
echo "<a href=./$conteudo>$cont eudo</a><br>";
}
closedir($dir);
?>
How can I remove from the list two files, index.php and .htaccess. I
tried using 'if' but without success.
Thanks...
Comment