PHP File Create/Write
This is used to create and write to a file on the server
PHP Create File - fopen()
The fopen() function is also used to create a file
Example
PHP Write to File - fwrite()
The fwrite() function is used to write to a file.
Example - fwrite()
PHP Overwriting
The file "myfile.txt" contains some that happens when open an existing file for writing. All the existing data will be ERASED and start with an empty file.
Example
PHP Append Text
Append data to a file by using the "a" mode.