Well, that's what I'm confused about as well...

So is mad-lib or whatever you are using running locally? Is it creating whatever file in your own PC?

Assuming that you are indeed creating a file on your local PC, think about this: how would you upload that file to your account in your ISP manually? You would use your favorite FTP program on your local PC, and access the FTP server on the ISP's remote server, right? That means when you upload, you do something from your local machine. The server is what serves you, but it won't initiate the action.

So getting back to wanting to upload to your ISP... if you want to upload a file that's in your local machine using perl, you need to run a perl program in your local machine, which may use Net::FTP. You do something like

## obviously, this code will not work -- it's just pseudocode use Net::FTP; my $ftp = Net::FTP->new( 'servername' ); $ftp->login( 'foo', 'passwd' ); $ftp->put( '/path/to/the/file/that/you/want/to/upload' ); $ftp->quit;

And let me stress this again. If you want to UPLOAD, you do this from your local machine, not from your ISP's server!

Did that make sense?


In reply to Re: Re: Re(3) net:ftp by lestrrat
in thread net:ftp by wolverina

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.