Lines Matching refs:fwrite
2 Test fwrite() function : basic functionality
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
22 echo "*** Testing fwrite() basic operations ***\n";
24 test fwrite with file opened in mode : w,wb,wt,w+,w+b,w+t
31 echo "\n-- Testing fwrite() with file having data of type ". $file_content_type ." --\n";
38 /* open the file using $files_modes and perform fwrite() on it */
51 var_dump( fwrite($file_handle, $data_to_be_written, 100)); //int(100)
56 var_dump( fwrite($file_handle, $data_to_be_written, 2048)); //int(1024)
60 // fwrite() without length parameter
61 var_dump( fwrite($file_handle, $data_to_be_written)); //int(1024)
79 *** Testing fwrite() basic operations ***
81 -- Testing fwrite() with file having data of type numeric --
167 -- Testing fwrite() with file having data of type text --
253 -- Testing fwrite() with file having data of type text_with_new_line --
339 -- Testing fwrite() with file having data of type alphanumeric --