First Draft
First Draft of the Example Files
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php // testfile.php
|
||||
$fh = fopen("testfile.txt", 'w') or die("Failed to create file");
|
||||
|
||||
$text = <<<_END
|
||||
Line 1
|
||||
Line 2
|
||||
Line 3
|
||||
|
||||
_END;
|
||||
|
||||
fwrite($fh, $text) or die("Could not write to file");
|
||||
fclose($fh);
|
||||
echo "File 'testfile.txt' written successfully";
|
||||
?>
|
||||
Reference in New Issue
Block a user