note 7451 deleted from fwrite by ronabop

From: Date: Fri, 18 Aug 2000 05:09:16 +0000
Subject: note 7451 deleted from fwrite by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2436@lists.php.net to get a copy of this message
Hey guys, fwrite() function is to use with binary files, for txt files use the fputs() function. I´m trying to download a file from any http location and put all data into a local file. But it doesn't work, because the file downloaded is treated like a txt file or something. Example: I download a jpeg file whith fopen() and join it in an array with file() function, and when I put the data in a local file with fwrite(), it´s write like strings, not binary data. Help-me!

« previous php.notes (#2436) next »