Skip to content

Instantly share code, notes, and snippets.

@mtgq
Last active May 9, 2020 10:41
Show Gist options
  • Save mtgq/b2ba5056c70879473831b605f7ad67f6 to your computer and use it in GitHub Desktop.
Save mtgq/b2ba5056c70879473831b605f7ad67f6 to your computer and use it in GitHub Desktop.
$file = 'C:\yjc\work\phpEnv\www\localhost\log.txt';
if ($f = file_put_contents($file, '要写入的数据', FILE_APPEND)) {
echo "写入成功。<br />";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment