[PHP-DEV] RE: Bug #1032 Updated: file() not retrieving GIF properly From: Birnbaum, Richard (birnbaum <email protected>)
Date: 01/06/99

However, I really want to be opening a URL, not a file. How can I open
a URL containing binary data and read the entire contents into a
variable?

-----Original Message-----
From: Bug Database [mailto:php-dev <email protected>]
Sent: Tuesday, January 05, 1999 9:37 PM
To: birnbaum <email protected>
Subject: [PHP-DEV] Bug #1032 Updated: file() not retrieving GIF properly

ID: 1032
Updated by: rasmus
Reported By: birnbaum <email protected>
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:

implode(file()) is going to lose carriage return characters and is thus
not binary-safe. You should be using fread() here.

Full Bug description available at: http://ca.php.net/bugs.php3?id=1032

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>