Created
October 18, 2013 08:39
-
-
Save Webklex/7038484 to your computer and use it in GitHub Desktop.
Write to File - File handling
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
$myFile = "testFile.txt"; | |
$fh = fopen($myFile, 'w') or die("can't open file"); | |
$stringData = "Bobby Bopper\n"; | |
fwrite($fh, $stringData); | |
$stringData = "Tracy Tanner\n"; | |
fwrite($fh, $stringData); | |
fclose($fh); | |
#SRC: http://www.tizag.com/phpT/filewrite.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment