Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $directory="/img";
- $dirint = dir($directory);
- while (($archivo = $dirint->read()) !== false)
- {
- if (eregi("gif", $archivo) || eregi("jpg", $archivo) || eregi("png", $archivo)){
- echo '<img src="'.$directory."/".$archivo.'">'."n";
- }
- }
- $dirint->close();
- ?>
Add Comment
Please, Sign In to add comment