Guest User

Untitled

a guest
Apr 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2.  
  3. if ($handle = opendir('../../../../../../home/level1/key.txt')) {
  4. echo "Directory handle: $handle\n";
  5. echo "Files:\n";
  6.  
  7. /* This is the correct way to loop over the directory. */
  8. while (false !== ($file = readdir($handle))) {
  9. echo "$file\n";
  10. }
  11.  
  12.  
  13.  
  14. closedir($handle);
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment