RE: Bug #1032 Updated: file() not retrieving GIF properly

From: Date: Wed, 06 Jan 1999 14:39:39 +0000
Subject: RE: Bug #1032 Updated: file() not retrieving GIF properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-3336@lists.php.net to get a copy of this message
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@lists.php.net] Sent: Tuesday, January 05, 1999 9:37 PM To: birnbaum@k2design.com Subject: [PHP-DEV] Bug #1032 Updated: file() not retrieving GIF properly ID: 1032 Updated by: rasmus Reported By: birnbaum@k2design.com 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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3336) next »