I had the same problem...<br>
Here's my solution... you may want to just save the file instead of FTP.<?
$input = fopen("filename_to_open","r"); //open a file
$output = fread($input,40960); //read the contents to a string
$ftp = ftp_connect( "ftp.miletwo.com" ); //open a FTP connection
ftp_login ( $ftp, "miletwo", "ftpacc355"); //login to the open connection
$fp = tmpfile(); //create a temp file to dump output into
fwrite($fp, $output ); //write output to temp file
rewind($fp); //rewind the file before writing (just to be safe)
ftp_chdir($ftp,"wwwroot/"); //change directory on FTP server to wherever
ftp_fput($ftp, "myows.html", $fp, FTP_BINARY); //write the temp file to the FTP server
ftp_quit($ftp); //same as ftp_close - close the connection
?>
<hr>