Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2. $dir = "/images/";
  3.  
  4. // Open a directory, and read its contents
  5. if (is_dir($dir)){
  6. if ($dh = opendir($dir)){
  7. while (($file = readdir($dh)) !== false){
  8. echo "filename:" . $file . "<br>";
  9. }
  10. closedir($dh);
  11. }
  12. }
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement