Skip to content

Instantly share code, notes, and snippets.

$file = 'C:\yjc\work\phpEnv\www\localhost\log.txt';
if ($f = file_put_contents($file, '要写入的数据', FILE_APPEND)) {
echo "写入成功。<br />";
}