Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($handle = opendir('../../../../../../home/level1/key.txt')) {
- echo "Directory handle: $handle\n";
- echo "Files:\n";
- /* This is the correct way to loop over the directory. */
- while (false !== ($file = readdir($handle))) {
- echo "$file\n";
- }
- closedir($handle);
- }
- ?>
Add Comment
Please, Sign In to add comment