2012-11-15 3 views
-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); 

?> 

답변

2

당신을 잊었을 경우; 이 줄 바로 뒤에 :

$text = "Here are more text lines to insert." 

이렇게하면 문제가 해결됩니다.

관련 문제