Lines Matching refs:fwrite
2 Test fwrite() function : usage variations - r+, r+b & r+t modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
13 Description: fwrite() writes the contents of string to the file stream pointed to by handle.
16 fwrite() returns the number of bytes written or FALSE on error
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : r+,r+b,r+t
35 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
37 /* open the file using $files_modes and perform fwrite() on it */
59 var_dump( fwrite($file_handle, $data_to_be_written, 400));
66 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
74 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
90 *** Testing fwrite() various operations ***
92 -- Testing fwrite() with file having content of type numeric --
145 -- Testing fwrite() with file having content of type text --
198 -- Testing fwrite() with file having content of type text_with_new_line --
251 -- Testing fwrite() with file having content of type alphanumeric --