Created
September 8, 2015 18:31
-
-
Save mikedfunk/5115e41ce30189141f34 to your computer and use it in GitHub Desktop.
php one-liner to write to a file (log)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This function is identical to calling fopen(), fwrite() and fclose() successively to write data to a file. | |
file_put_contents($filename, $message, FILE_APPEND); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment