Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use File::Find; $photo_dir = '/path/to/public_html/photos'; $photo_url = "http://www.foo.com/photos"; print "Content-type: text/html\n\n"; find(\&wanted, $photo_dir); sub wanted { if ( (stat $_)[9] > time() - (86400 * 1) ) { # all pics w +ithin the past 24 hours print "<img src=\"$photo_url/$_\" height=150 width=150><p +>\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Find help requested
by VSarkiss (Monsignor) on Aug 07, 2001 at 18:57 UTC | |
|
Re: File::Find help requested
by Hofmator (Curate) on Aug 07, 2001 at 19:00 UTC | |
|
Re: File::Find help requested
by lemming (Priest) on Aug 08, 2001 at 00:58 UTC | |
|
Re: File::Find help requested
by arturo (Vicar) on Aug 08, 2001 at 01:07 UTC |