|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can someone give me a quick example of connecting to an FTP (username and password required) ?
|
|
#2
|
|||
|
|||
|
I hope you mean "through perl" There's a module called Net::FTP. Once you get it installed (dont know if it's available for win32), do 'perldoc Net::FTP'
From perldoc Net::FTP: USAGE: use Net::FTP; $ftp = Net::FTP->new("some.host.name"); $ftp->login("anonymous","me@here.there"); $ftp->cwd("/pub"); $ftp->get("that.file"); $ftp->quit; hope this helps. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Connecting to an FTP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|