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

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: RE: Bug #1032 Updated: file() not retrieving GIF properly
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-3338@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? $fp=fopen("http://...","r"); $data = fread($fp,100000); /* max size of stuff to read */ fclose($fp); -Rasmus -- 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 (#3338) next »