-Chicken-

Search_Site.php

Jul 15th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.     $FILES = array();
  3.     function Search_Files($dir){
  4.         $files = scandir($dir);
  5.             for($i = 1; $i <= count($files); $i++) {
  6.                 if(is_dir($dir . "/" . stripslashes($files[$i]))) {
  7.                 Search_Files($dir . "/" . stripslashes($files[$i]));
  8.                 }else{
  9.                 $FILES[count($FILES)+1] = $files[$i];
  10.                 }
  11.             }
  12.     }
  13.     Search_Files("/");
  14.     print_r($FILES)
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment