note 33230 added to function.fopen

From: Date: Thu, 19 Jun 2003 17:56:16 +0000
Subject: note 33230 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-50670@lists.php.net to get a copy of this message
I cannot open file for binary. For example: $file = fopen("test.fil", "wb"); $data = 4; fwrite($file, $data, 2); fclose($file); The code is supposed to write 2 bytes to the file in binary mode. However, it turns out that it wrote it in text mode. ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33230 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33230&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33230&report=yes

« previous php.notes (#50670) next »