php中用到文件主要是一些函数:
file_put_contents($filename, $data, $flag) 写入文件(追加$flag=FILE_APPEND)
file_get_contents($filename) 读取文件
file_exists($filename) 判断文件or目录是否存在
mkdir($path, 0777, true) 创建目录
*php中在函数前jia@,可以在遇到错误时在页面上提示Warning。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号