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;
}
}
?>
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;
}
}
?>
[Click to add or edit comments])
Please prepend comments below including a date