int fwrite ( resource $handle , string $string [, int $length ] )
fwrite() writes the contents of string to the file stream pointed to by handle.
fwrite() returns the number of bytes written, or FALSE on error.