On the second file write code: <?php
// Put the text we want in the file in a string.
$text = "This is line one.\nThis is line two.\nThis is line three.\nThis is line four.\nThis is line five.\n";
// 1) Store the file name in a string (this is the file handle).
$filename = "writetest.txt";
// 2) Open the file
$filehandle = fopen($filename, 'w')
// 3) Write what we want to the file
fwrite($filehandle, $text);
// 4) Close the file
fclose($filehandle);
?>
I get this error..
Parse error: syntax error, unexpected T_STRING in C:\Program Files\VertrigoServ\www\code2design\phplessons\filehandle.php on line 10