Search
Find: Category: Location:

Keyword

Specific Category

City/State, or Zipcode

Using Net::FTP to get a file on the server

Using Net::FTP to get a file on the server

Using Net::FTP to get a file on the server

  • 0 Stars.

Using Net::FTP to get a file on the server


use Net::FTP;

$ftp = Net::FTP->new("ftp.cpan.org", Timeout => 30)
        or die "Could not connect.\n";

$username = "anonymous";
$password = "asdf";

$ftp->login($username, $password)
        or die "Could not log in.\n";

$ftp->cwd('/pub/CPAN');

$remotefile = "CPAN.html";
$localfile = "file.txt";

$ftp->get($remotefile, $localfile)
        or die "Can not get file.\n";


 








Other Categories:
 CGI & Perl » Scripts & Codes


Related Listings:
File reader
PrestaShop File Upload Module
File Upload Script
Top Categories