Quick script to display all images in a directory

This script should be placed inside the directory of images you want to display.

<?php
foreach(glob("*") as $file){
  if(eregi("\.(gif|jpg|jpeg|png)$",$file)){
    print <<<eof
 <img style="border:1px solid black;" src="{$file}" alt="{$file}" title="{$file}" />
eof
;
  }
}
?>

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.