PHP: fwrite - Manual - PHP: Hypertext Preprocessor
Note: On systems which differentiate between binary and text files (i.e. Windows) the file must be opened with 'b' included in fopen() mode parameter. Note: If handle was fopen() ed in append mode, fwrite() s are atomic (unless the size of string ......