lenf 发表于 2017-3-23 08:19:13

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]
查看完整版本: php file_put_contents完整用法