Otoz to, a prosciej i bardziej "php 5"

Manual W3C to ladnie streszcza:
Cytat
Definition and Usage
The file_put_contents() writes a string to a file.
This function follows these rules when accessing a file:
1. If FILE_USE_INCLUDE_PATH is set, check the include path for a copy of *filename*
2. Create the file if it does not exist
3. Open the file
4. Lock the file if LOCK_EX is set
5. If FILE_APPEND is set, move to the end of the file. Otherwise, clear the file content
6. Write the data into the file
7. Close the file and release any locks
This function returns the number of character written into the file on success, or FALSE on failure.