in reply to Re: How to generate an HTML page from an FTP directory listing?
in thread How to generate an HTML page from an FTP directory listing?

(from original author)

It's the formatting part that I have a question on. Is there an existing script/tool that will take the directory listing and format it for me (creating links for each file/directory, etc.), or do I need to do that manually? (I know, I know, doing it manually isn't that big a deal for you experienced guys out there, but when you're just starting out, just about anything can be intimidating...) :)

Thanks again.

  • Comment on Re: Re: How to generate an HTML page from an FTP directory listing?

Replies are listed 'Best First'.
(tye)Re: How to generate an HTML page from an FTP directory listing?
by tye (Sage) on Mar 28, 2001 at 23:50 UTC

    Wouldn't something as simple as:

    print <<"END" <a href="ftp://server/path/$file">$file</a><br> END
    work?

            - tye (but my friends call me "Tye")
Re: Re: Re: How to generate an HTML page from an FTP directory listing?
by merlyn (Sage) on Mar 28, 2001 at 22:16 UTC
    Well, there's probably nothing "out of the box" that does exactly what you want (yet, because I've noted this problem for a future column idea), but take a look at my past columns for ideas on how to generate links based on names, and how to respond to those links when selected.

    -- Randal L. Schwartz, Perl hacker