Re: PHP 4.0 Bug #9468 Updated: fread stops reading
| From: | Helmut Stock | Date: | Tue, 27 Feb 2001 15:21:02 +0000 |
| Subject: | Re: PHP 4.0 Bug #9468 Updated: fread stops reading | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-47622@lists.php.net to get a copy of this message | ||
great !!!
thanks for your quick reply. my problem ist solved now.
could not find this in my printed manual.
best regards
helmut
On 27 Feb 2001 13:29:36 -0000
Bug Database <php-dev@lists.php.net> wrote:
> ID: 9468
> Updated by: sniper
> Reported By: stock@cargo-partner.com
> Old-Status: Open
> Status: Bogus
> Bug Type: Filesystem function related
> Assigned To:
> Comments:
>
> $filenum=fopen($path . "/" . $attachment_name,"rb");
>
> Read the manual page:
>
> http://www.php.net/fopen
>
> Where it says:
> "The mode may contain the letter 'b'. This is useful only
> on systems which differentiate between binary and text
> files (i.e., it's useless on Unix)."
>
> --Jani
>
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-02-26 14:40:36] stock@cargo-partner.com
> i am using php 4.0.4 (build 20.12.2000) on w2k (build
> 2195)with iis5.
> pls. note that fread function has a problem reading a
> binary file (*.zip) afer uploading.
> fread stops after reading 389 bytes instead of reading
> the whole file using following code:
>
> $filesize=filesize($path . "/" . $attachment_name);
> $filenum=fopen($path . "/" . $attachment_name,"r");
> $filestuff=fread($filenum,$filesize);
> fclose($filenum);
>
> pls. help
>
> ---------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=9468&edit=2
>