Problem getting binary data over http

From: Date: Sat, 10 Jun 2000 01:34:27 +0000
Subject: Problem getting binary data over http
Groups: php.version4 
Request: Send a blank email to php-version4+get-16251@lists.php.net to get a copy of this message
Hello List! I am trying to get images with a little script over http. But the data that is written on my harddrive is corrupted :-( Is this a lame question? Does anyone know how to do it better? Is this a bug? Here a little snippet to test: <?php $fp = fopen("http://www.php.net/gifs/logo.gif","r"); $Image = fread($fp,150000); $fp2 = fopen("logo.gif", "w"); fwrite($fp2,$Image,150000); fclose($fp2); ?>

« previous php.version4 (#16251) next »