I think I'm beginning to understand what you are wanting to do. The Net::FTP script is on the Linux server and its trying to connect to a Win98 PC to get a file? If so, then you need:
A) to make sure there is an FTP server running on the PC
B) you want to use the 'get' method ($ftp->get('$remote_file','$local_file');)
I think I am understanding you properly. If you are attempting to use Net::FTP to connect to a machine that does not have an FTP server running, then you will not be able to do this. I've never really used CGI.pm but I think castaway has the right of it.
| [reply] [d/l] |
Yes, and no.
Net::FTP can connect TO a another machine, running an FTP server, and either fetch from or upload to that server. Which machine are you telling your Net::FTP connection to connect to? (My guess would be its the linux machine again, which makes no sense, that would only be useful for transferring files from linux to linux).
I think you are confused about where the script with Net::FTP is running. Its running on the linux webhost. So any connections it makes are from there. If you need to transfer files from your PC to the linux webhost, you need to connect to your PC, and do a GET operation, not a PUT.
This would require that your PC is running an ftp server, which it probably isnt. (Windows doesnt come with one, unless you have IIS installed.)
You are using Net::FTP incorrectly, yes. Read up on CGI.pm and how it can be used to upload files. (theres a tutorial on perlmonks somewhere, I believe).
C. | [reply] |
Yep, that is it. Many many thanks to all who have helped with this issue - this is the first place I asked that there has actually been help. Next time it will be the first place I ask! What a great community!
Well, I guess I'll look at other options then, since Net::FTP won't work for this instance (though now I truely understand why it doesn't work). And really, when I think about it it all makes good sense. Many thanks and blessings again!
-Matt :)
| [reply] |