- To: php-general@xxxxxxxxxxxxx
- Subject: image inventoryer
- From: Kirk Bailey <kbailey@xxxxxxxxxxxxxxxx>
- Date: Sat, 07 Apr 2012 23:35:28 -0400
- Organization: Silas Dent Memorial Cabal of ERIS Esoteric and hot dog boiling, society FNORD!
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
<html>
<head>
<title>Image inventory of this directory</title>
<style TYPE="text/css">
body { margin-left: 10; margin-right: 10%; }
body {background-attachment:fixed;}
A:link, A:visited, A:active { text-decoration:none; }
A:hover { text-decoration:underline; }
.justify{text-align:justify;}
.center{text-align:center;}
</style>
</head>
<body bgcolor="#A0A0A0" TEXT="BLACK" LINKS="BLUE">
<CENTER>This page inventories the contents of this directory and
lists all image files in order- as
the computer determines such matters. Here is the full inventory.
<hr align="center">
<P>
<?php
foreach (glob("*.*") as $filename) {
echo '<img src="'.$filename.'">'."<br>\n$filename\n<P>\n";
}
?>
</body></html>
This works nicely. copied code from online manual, chainsaw editing
to fit, superglue in the spare parts needed and it lists them all
and composes proper img links to display on the inventory page. NOW
I have the tool i needed; can someone else put this to good work?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-----+
| BOX |
+-----+
think
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP Home]
[Apache Users]
[PHP on Windows]
[Kernel Newbies]
[PHP Install]
[PHP Classes]
[Pear]
[Postgresql]
[Postgresql PHP]
[PHP on Windows]
[Find Someone]
[PHP Database Programming]
[PHP SOAP]