php file_put_contents完整用法
<?php$filename = 'file.txt';
if (is_writable($filename)) {
echo file_put_contents($filename, "This is another something.", FILE_APPEND|LOCK_EX);
} else {
echo "文件 $filename 不可写";
}
http://php.net/manual/zh/function.file-put-contents.php
页:
[1]