in reply to Using Perl FTP to write a string variable as a file

Why do you need FTP? Do you have two hosting accounts, one of which is receiving form input and the second the data in a file? Wouldn't it be simpler to run the script directly on the target hosting account and write the data directly to a local file?

Just puzzled. Some further explanation might be useful.

  • Comment on Re: Using Perl FTP to write a string variable as a file

Replies are listed 'Best First'.
Re^2: Using Perl FTP to write a string variable as a file
by Anonymous Monk on Dec 27, 2004 at 20:38 UTC

    Thanks for all the quick responses.

    A little more background information:

    The script that I am creating grabs live web pages being served in the clients section, replaces a segment of code and then needs to rewrite the file with the changes.

    Since the files are stored in the web display folder where the permissions are resonably strict the only sure fire way I know of to write the files without having to worry about permissions is to use FTP.

    This assumption may be inaccurate. If it is I would be all too happy to use standard commands to write the HTML file. But I fear that the permissions in the web display folder will not allow my script to do so.