Write File

chmod Note that the directory you write the file to may need chomd set to 777 (php needs the Execute bit set to be able to write).  This can be a potential security risk if this is a concern. Write text to a file (overwrite if exists) Write text to a file (create or append)

Read More