Advertisement
Eeems

Untitled

Jul 11th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2.     $dir = scandir("images/");
  3.     $i = 0;
  4.     foreach($dir as $key => $file){
  5.         echo "<a href='images/{$file}'><img src='images/{$file}' style="max-width:200px;max-height:200px;padding:10px;" /></a>";
  6.         $i++;
  7.         if($i%3==0){
  8.             echo "<br />";
  9.         }
  10.     }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement