Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = "/images/";
- // Open a directory, and read its contents
- if (is_dir($dir)){
- if ($dh = opendir($dir)){
- while (($file = readdir($dh)) !== false){
- echo "filename:" . $file . "<br>";
- }
- closedir($dh);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement