/ Forside / Teknologi / Udvikling / Perl / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Perl
#NavnPoint
bjarneA 141
poul_from 50
soccer 30
Nicknack 14
Tmpj 0
list all files in a directory to a HTML fi~
Fra : Hans


Dato : 20-11-01 21:51

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



 
 
Tom Mattmann (21-11-2001)
Kommentar
Fra : Tom Mattmann


Dato : 21-11-01 20:19

"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.




Søg
Reklame
Statistik
Spørgsmål : 177580
Tips : 31968
Nyheder : 719565
Indlæg : 6409075
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste