The following files exists in this folder. Click to view.
index.php1 lines ASCII Unix (LF) <?php
echo "Reading file 1.<br>";
$s = file_get_contents("file1.txt");
echo $s;
echo "Saving file 2. This function returns the number of bytes that were written to the file, or FALSE on failure. The length of the content is: " . strlen($s) . "<br>";
var_dump(file_put_contents("file2.txt", $s));
echo "<br><br>Reading file 2.<br>";
$s = file_get_contents("file2.txt");
echo $s;