-
-
Save sistematico/5f34e3d8036f90ea3dfd35f6f4151329 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