Are you sure you are using the ASCII/Binary flag properly?
Also, in your script, are you opening the file with fopen() then reading
with fgets/fread to write to a file on the ftp? or are you using ftp_put()?

I know if there is binary data in a file you are attempting to send ascii,
it will truncate, as some value may look like an EOL/EOF char.

----- Original Message -----
Sent: Monday, November 25, 2002 3:46 PM
Subject: [PHP] FTP'ing with function

> I am trying to ftp with php code.  The code works, but the file is
truncated for some reason.
> The only thing that I could think of would be directive in the php.ini
file, but these seem to be ok:
> max_execution_time = 60 > the files / script process quickly, so this
doesn't seem to be the problem
> upload_max_filesize = 32M > the files are not anywhere close to this max
> Can anyone think what might be causing my problem.
> You can see the sample files at: and
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to