Hi! Please help.
How I can download file from ftp server via browser. I try use code below, but it not download file. it print file in browser.
-----------------------------------------------------------
print "Content-type: file\n\n";# I seem this is wrong?
eval {
use Net::FTP;
use CGI qwstandard);
};
print $@;
my $file = param('file');
my $ftp = Net::FTP->new("ftp.tripod.com"
$ftp->login('user','password');
$ftp->cwd('script');
$ftp->get($file,*STDOUT);
-----------------------------------------------------------
How I can download file from ftp server via browser. I try use code below, but it not download file. it print file in browser.
-----------------------------------------------------------
print "Content-type: file\n\n";# I seem this is wrong?
eval {
use Net::FTP;
use CGI qwstandard);
};
print $@;
my $file = param('file');
my $ftp = Net::FTP->new("ftp.tripod.com"
$ftp->login('user','password');
$ftp->cwd('script');
$ftp->get($file,*STDOUT);
-----------------------------------------------------------