Manual H1 & gt; (PHP3, PHP4 & gt; 4.0.0) fwrite -- Binary file write description & nbsp; intfwrite (intfp, stringstring [, intlength]) & nbsp; fwrite () write the string content to the file stream specified by fp. If length is given, the manual after writing the bytes specified by length
H1>
(PHP 3, PHP 4> = 4.0.0)
Fwrite -- Binary file writing
Description
Int fwrite (int fp, string [, int length])
Fwrite () writes the string content to the file stream specified by fp. If length is given, it will end after writing the bytes specified by length.
Note: If the length parameter is given, the magic_quotes_runtime configuration option will be ignored, and "\" in the string will not be deleted.
Note: In some systems, binary and text files (I. e. Windows) are distinguished. this file must be opened using the fopen () mode with the 'B' parameter.
See fread (), fopen (), fsockopen (), popen (), and fputs ().