Re: FTP'ing with function
| From: | Matt Vos | Date: | Mon, 25 Nov 2002 20:56:51 +0000 |
| Subject: | Re: FTP'ing with function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125999@lists.php.net to get a copy of this message | ||
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.
Matt
----- Original Message -----
From: <poliva@cox.net>
To: <php-general@lists.php.net>
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
size
>
> Can anyone think what might be causing my problem.
>
> You can see the sample files at: www.financialnewsusa.com/xml/35.xml and
www.financialnewsusa.com/xml/35_truncated.xml
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>