I have this script but am looking to modify it alittle
if ($handle - opendir('.')){
while (false !== ($entry = readdir($handle))){
if ($entry != "." && $entry != ".." && $entry != "index.php"){
echo "<a href=\"http://mylink/index.php\">Folder Name</a>";// no subdirectories
}
}
closedir($handle);
}
I am trying to do this with this script
i pretty much want to know if the directory has sub folders and if not use one ulr and if it does use another.