Re: where should perl create a file for user download?
From: Ramprasad A Padmanabhan (ramprasad_at_netcore.co.in)
Date: 02/02/04
- Next message: Thomas bätzler: "RE: Perl 6"
- Previous message: Ricardo Signes: "Re: Perl 6"
- In reply to: Timothy Driscoll: "where should perl create a file for user download?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org, Timothy Driscoll <molvisions@mac.com> Date: Mon, 02 Feb 2004 18:52:48 +0530
Timothy Driscoll wrote:
> greetings,
>
> I am writing a small perl script that takes user input via a Web form, writes
> a few files to my server, creates a zip archive that includes those files,
> and offers the user a link to download the zip file. I am running perl 5.8
> on OS XS 10.3.
>
> can anyone offer some expert advice concerning where on my server to put the
> newly created zip? in my cgi script dir? somehow, this troubles me from a
> security perspective (plus the fact that all of my user-accessible documents
> exist on a separate Volume from my core server apps). is there a better way?
>
>
> thanks!
>
> (a perl newbie trying to start off on the right foot.)
>
>
> :tim
>
The simplest way :-
Create a directory under your document root and store the files and
give links to those files as plain href. thats it
Optionally ,You can also try doing some fancy stuff like changing
content type of your script and printing the zip file
Bye
Ram
- Next message: Thomas bätzler: "RE: Perl 6"
- Previous message: Ricardo Signes: "Re: Perl 6"
- In reply to: Timothy Driscoll: "where should perl create a file for user download?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|