Mystic
Account Closed
- Impact
- 8
i am using this script to pickup folder names and make hyperlinks to foldername/index.php but no matter what i do, it seems to pick root folders up, i want it to pick folders up that are in the /pages directory, automatically anyone know whats wrong? or can reccomend a file that auto detects phpfiles/scripts ?
Code:
<?
$rep=opendir('.');
$bAuMoinsUnRepertoire = false;
while ($file = readdir($rep)){
if($file != '..' && $file !='.' && $file !=''){
if (is_dir($file)){
print("<a href='$file/index.php'>$file</a>");
print("<BR>");
}
}
}
{
}
?>















