Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=================================================================
- _ ____ _____ __
- (_) _ \ ___ |_ _|__ __ _| \/ |
- | | |_) / __| | |/ _ \/ _` | |\/| |
- | | __/\__ \ | | __/ (_| | | | |
- |_|_| |___/ |_|\___|\__,_|_| |_|
- Criado Por SuYaNw Dácio
- www.ips-team.blogspot.com
- =================================================================*/
- function ShowDirectory($dir = ".", $Ex = "")
- {
- $dir = opendir('.');
- while (false !== ($file = readdir($dir)))
- if(strstr($file, $Ex))
- echo "<a href='$file'>$file</a><br>";
- closedir($dir);
- }
- // Exemplo de uso.
- ShowDirectory(".", ".txt"); // Exibe somente os arquivos arquivos de textos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement