PHPを使用してテキストファイルに書き込むWebサイトを開発しようとしています。正しいファイルパスに 'newfile.txt'というテキストドキュメントを作成してGoogle Chromeでコードを実行しました。ファイルは書かれておらず、私とは異なるコードをオンラインで見つけることはできません。エラーメッセージも出力されません。私は何を間違えたのですか?PHP - ファイルへの書き込みが機能しません
<!DOCTYPE html>
<html>
<body>
<?php
$myfile = fopen("C:\Users\Andrew\Documents\newfile.txt", "w") or die("Unableto open file!");
$txt = "John Doe\n";
fwrite($myfile, $txt);
$txt = "Jane Doe\n";
fwrite($myfile, $txt);
fclose($myfile);
?>
</body>
</html>
エラーを探していますか? ['error_reporting(E_ALL);'](http://php.net/manual/en/function.error-reporting.php) ['ini_set( 'display_errors'、1);'](http:// php .net/manual/en/function.ini-set.php) – Qirel