Posted By

conspirator on 08/05/09


Tagged

php textmate folder images dynamic gallery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

senorJ


php gallery


 / Published in: Other
 

  1. <?
  2. $dir = 'graphics/images/gallery/tn/';
  3. $files = scandir($dir);
  4. foreach ($files as &$file) {
  5. if ($file!='.' && $file!='..' && $file!='.DS_Store') {
  6. echo "<li><img src="{$dir}{$file}" width="72" height="48" alt="" /></li>";
  7. }
  8. }
  9. ?>

Report this snippet  

You need to login to post a comment.