Last active
August 29, 2015 14:20
-
-
Save 9ete/f337a87b7e704b58dfb0 to your computer and use it in GitHub Desktop.
Print directories in current directory with 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 | |
$dirs = array_filter(glob('*'), 'is_dir'); | |
foreach ($dirs as $dir) { | |
if ($dir !== 'scp_dump' || $dir !== 'scp_dump') { | |
echo "<a href='http://".$dir.".devdomain.com/'>".$dir.'</a><br/>'; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment