Created
October 4, 2012 10:30
-
-
Save alexstep/3832789 to your computer and use it in GitHub Desktop.
php wrtite file
This file contains hidden or 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
// http://www.php.su/functions/?fopen | |
$filecontent = 'some content'; | |
$file = fopen($_SERVER["DOCUMENT_ROOT"]."/path/name.txt","w+"); | |
fputs($file, $filecontent); | |
fclose($file); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment