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? |