February 2013
Intermediate to advanced
538 pages
20h 55m
English
file_put_contents
int file_put_contents(stringpath, mixedstring[, intflags[, resourcecontext]])
Opens the file specified by path,
writes string to the file, then closes the
file. Returns the number of bytes written to the file, or −1 on error. The flags argument is a
bitfield with two possible values:
| If specified, the include path is searched for the file and the file is written at the first location where the file already exists. |
| If specified and if the
file specified by |
| Exclusively lock the file before writing to it. |
Read now
Unlock full access