Re: How to display dir contents on web page?

2003-02-19 Thread R. Joseph Newton
"Scott, Deborah" wrote: > Does anyone know where I can get a script that looks into the contents of a > directory and outputs the contents of the directory into a list that is > displayed on an HTML page? (Also, the names should contain hyperlinks to > those contents.) > > Or, how would I do this?

Re: How to display dir contents on web page?

2003-02-19 Thread Pete Emerson
On Wed, 19 Feb 2003, Scott, Deborah wrote: > Does anyone know where I can get a script that looks into the contents of a > directory and outputs the contents of the directory into a list that is > displayed on an HTML page? (Also, the names should contain hyperlinks to > those contents.) Deborah,

RE: How to display dir contents on web page?

2003-02-19 Thread Dan Muey
use File::Slurp; @files = read_dir("/home/joemama/public_html/files"); # may be readdir see http://search.cpan.org for details foreach $f(@files) { print "http://www.domain.com/files/$f\";> $f \n"; } > > > Does anyone know where I can get a script that looks into the > contents o