in reply to Re: Re: Re: Re: Struggles with Put in Net::FTP
in thread Struggles with Put in Net::FTP

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.

  • Comment on Re: Re: Re: Re: Re: Struggles with Put in Net::FTP

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Struggles with Put in Net::FTP
by mchiles (Initiate) on May 27, 2004 at 03:56 UTC
    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 :)