-2
有人可以檢查我的代碼,我不知道它有什麼問題。每當我執行代碼時,我都會在標題中看到這個錯誤。語法錯誤,意外的'fwrite'(T_STRING)
<?php
$file = "newfile.txt";
$text = "This is a text line. ";
$handle = fopen($file, "w");
fwrite($handle, $text);
fclose($handle);
$handle = fopen($file, "a");
$text = "Here are more text lines to insert."
fwrite($handle, $text);
fclose($handle);
include ($file);
?>