Created
February 11, 2012 15:15
-
-
Save felladrin/1800645 to your computer and use it in GitHub Desktop.
Código PHP para listar subpastas com links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($diretorio = opendir("./")) | |
{ | |
while(false !== ($pasta = readdir($diretorio))) | |
{ | |
if(is_dir($pasta) and ($pasta != ".") and ($pasta != "..")) | |
{ | |
echo "<a href='$pasta'>$pasta</a><br>"; | |
} | |
} | |
closedir($diretorio); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfeito