小编use*_*417的帖子

在 PHP 中,为什么不写入 test.txt?

我的代码是

<?php
$fp = fopen('test.txt', "a+");
fwrite($fp, 'Cats chase mice');
fclose($fp);
?>
Run Code Online (Sandbox Code Playgroud)

但 test.txt 仍然是空的。我没有看到任何错误,我不明白为什么它不写。

php file fwrite

3
推荐指数
1
解决办法
7293
查看次数

标签 统计

file ×1

fwrite ×1

php ×1