CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Downloading files

 



Redmak
Deleted

Feb 3, 2001, 5:44 AM

Post #1 of 1 (271 views)
Downloading files Can't Post

Hi,

I have this piece of code to download a file from my site:

print "Content-type: application/x-zip-compressed\n\n";
open(FILE,"<$directory\/$download");
while (<FILE>) { print $_; }
close(FILE);

The link on my webpage looks something like this:

http://www.mysite.com/cgi-bin/getfile.cgi?subdir/file.zip

The selected file is downloaded only the filename is the one of the script (getfile) and not the name of the downloaded file.

Thank you for your help
Redmak


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives