Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $FILES = array();
- function Search_Files($dir){
- $files = scandir($dir);
- for($i = 1; $i <= count($files); $i++) {
- if(is_dir($dir . "/" . stripslashes($files[$i]))) {
- Search_Files($dir . "/" . stripslashes($files[$i]));
- }else{
- $FILES[count($FILES)+1] = $files[$i];
- }
- }
- }
- Search_Files("/");
- print_r($FILES)
- ?>
Advertisement
Add Comment
Please, Sign In to add comment