mirror of
https://github.com/php/web-php.git
synced 2026-04-25 07:58:04 +02:00
16 lines
425 B
PHP
16 lines
425 B
PHP
<?php require "header.inc"?>
|
|
<h1>A simple Photo Album Application</h1>
|
|
<?example('<h1>Welcome to my Photo Album</h1>
|
|
<?
|
|
$fd = opendir(".");
|
|
while($entry = readdir($fd)) {
|
|
if(eregi("\.(jpg|gif|png)$",$entry)) {
|
|
echo "<a href=\"$entry\">";
|
|
echo "<img src=\"$entry\" align=middle border=0 height=80 width=100>";
|
|
echo "</a> $entry<br>\n";
|
|
}
|
|
}
|
|
closedir($fd);
|
|
?>');?>
|
|
<?php require "footer.inc"?>
|