Did you read the POST? I clearly quoted the problem:
The problem is that all small .txt files work. Sometimes small .DOC files do not. All large .DOC files fail.
You see, some of the attempts to upload the file via FTP work, some fail, but no errors are displayed. Just because there are no error messages does not mean everything works perfectly.
CODE:
//here i check to see if the file exists and if it does i increment $i and try again until i have a file name that does not exist
while(!$conn_id = @fopen("ftp://$uname:$pword@$url/upload/$class/$instructor/$assignment/$i-$newFile_name", "w"))
{
$i++;
}
//i have attempted the fwrite() with the size as the last value passed in, but it still fails with larger files
fwrite($conn_id, $tempFileContents);
Now I have checked the FTP server, increased the timeout value, watched small files be uploaded. I even copy the file after the form uploads it from the server temp directory to another directory so I know the form uploads the file and that works every time. But even after copying the file to a permanent location on the web server, the large files are always failing.