im thinking if its gonna be very difficult to get the ftp working, you may be better off creating a script on the remote server, perhaps in the same folder as the .txt file which accepts post data, and when it receives it, the data is written to a file. for additional security you should hardcode a username/password into the script so not just any user can post data to the script and have it write to the file. this way you do...
<?php
//save.php
$username = "drew010";
$password = "mypass";
if($_POST['pass'] != $password && $_POST['user'] != $username) {
exit;
}
$fp = fopen("./foo.txt", "w+");
fwrite($fp, $_POST['contents']);
fclose($fp);
?>
now to get the file written to you can post data to that script with fsockopen...
<?php
$user = "drew010";
$pass = "mypass";
$contents = "put/fetch whatever you want to go in foo.txt here";
$poststr = urlencode("user=$user&pass=$pass&contents=$contents");
$fp = @fsockopen("64.175.23.250", 80, $errno, $errstr, 10);
if (!$fp) die("Couldn't connect to remote host. Reason: $errstr");
fputs($fp, "POST /rss/save.php HTTP/1.0\r\n"
."Host: 64.175.23.250\r\n"
."Content-Type: application/x-www-form-urlencoded\r\n"
."Connection: close\r\n"
."Content-Length: " . strlen($poststr) . "\r\n\r\n"
. $poststr . "\r\n");
fclose($fp);
?>