🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.lang.php
2 messages
2 total messages Started by Hans Tue, 20 Nov 2001 20:51
list all files in a directory to a HTML file
#74
Author: Hans
Date: Tue, 20 Nov 2001 20:51
16 lines
1943 bytes
Hi all,

I got a site containing tours. For each location I got a directory. Now I
need a CGI script that generates a list from al files in a directory en puts
that list on a customisable HTML file. I want also to give a description of
the file.

I want for each location (directory) a HTML list with all files.

When I get new tours suplied (.doc or .xls or .doc) I just want to copy that
file in the right directory, en then it must appear on the list.

Can anybody help me??
Thanks in advance

Greetings Hans
Re: list all files in a directory to a HTML file
#75
Author: Tom Mattmann
Date: Wed, 21 Nov 2001 19:18
23 lines
2398 bytes
"Hans" <yammax@zonnet.nl> schrieb im Newsbeitrag
news:9tefnp$s1e$1@nereid.worldonline.nl...
> I got a site containing tours. For each location I got a directory. Now I
> need a CGI script that generates a list from al files in a directory en
puts
> that list on a customisable HTML file. I want also to give a description
of
> the file.
You could use File::Find to fetch a list of files recursively. find() will
call the wanted() function that could do printing and other stuff for you.
See perldoc File::Find.

CGI programming and HTML handling is covered by a range of CPAN modules,
see search.cpan.org and read the modules' documentation.

> I want for each location (directory) a HTML list with all files.
>
> When I get new tours suplied (.doc or .xls or .doc) I just want to copy
that
> file in the right directory, en then it must appear on the list.
>
> Can anybody help me??
Help yourself, perldoc is always your friend. :-)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads