Re: image inventoryer
| From: | tamouse mailing lists | Date: | Sun, 08 Apr 2012 06:18:51 +0000 |
| Subject: | Re: image inventoryer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317484@lists.php.net to get a copy of this message | ||
On Sat, Apr 7, 2012 at 10:35 PM, Kirk Bailey <kbailey@howlermonkey.net> wrote:
> <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?
Well, congrats on a first somewhat useful program. All I have to say
now is: you have a long way to go.