note 53622 added to function.fwrite
| From: | albert | Date: | Tue, 07 Jun 2005 16:02:14 +0000 |
| Subject: | note 53622 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90072@lists.php.net to get a copy of this message | ||
To write 'true binary' files combine with pack() :
$a = 65530;
$fp = fopen('test.dat', 'w');
fwrite($fp, pack('L', $a));
fclose($fp);
----
Manual Page -- http://www.php.net/manual/en/function.fwrite.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53622
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53622&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53622&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53622&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53622&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53622&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53622&report=yes
Search -- http://master.php.net/manage/user-notes.php