Location: PHPKode > projects > PHP Cad and Drawing Program > phpcad/time/index.php
<?php
$a = getcwd();
$b = opendir($a);
$plist = array();
while($file = readdir($b))
    if (ereg("[jJ][pP][gG]$",$file) or ereg("[pP][nN][gG]$",$file))
        array_push($plist,$file);
sort($plist);
closedir($b);

echo "<html><body>\n";
foreach($plist as $file) {
    echo "<a href='$file'>";
    echo "<img border=0 src='drawimage.php?pfilez=$file'</a>\n";
}
echo "</body></html>\n";
?>
Return current item: PHP Cad and Drawing Program