Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$dirforimg="my_ip_number/test/images": opendir(DIR,$dirforimg) || die("Cannot open directory $dirforimg: $! $ +@\n"); @contents = sort readdir(DIR); closedir(DIR); # Format as clickable links foreach my $filename (contents) { print " <a href\"$dirforimg/$filename\">$filename</a>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open directory - Different Server
by holli (Abbot) on Feb 22, 2006 at 13:59 UTC | |
by Anonymous Monk on Feb 22, 2006 at 14:11 UTC | |
by neilwatson (Priest) on Feb 22, 2006 at 14:17 UTC | |
by holli (Abbot) on Feb 22, 2006 at 14:29 UTC | |
by Anonymous Monk on Feb 22, 2006 at 16:52 UTC | |
by holli (Abbot) on Feb 22, 2006 at 17:47 UTC | |
| |
|
Re: Open directory - Different Server
by clinton (Priest) on Feb 22, 2006 at 17:19 UTC |