多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
>[success] ### 创建等基本操作 1.创建文件 A.使用函数 ~~~txt touch($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.touch.php](http://php.net/manual/zh/function.touch.php) 2.创建文件夹 A.使用函数 ~~~txt mkdir($dst,0777,true) ~~~ B.函数介绍 [http://php.net/manual/zh/function.mkdir.php](http://php.net/manual/zh/function.mkdir.php) 3.重命名一个文件或目录 A.使用函数 ~~~txt rename($src,$dst) ~~~ B.函数介绍 [http://php.net/manual/zh/function.rename.php](http://php.net/manual/zh/function.rename.php) 4.拷贝文件 A.使用函数 ~~~txt copy($src,$dst) ~~~ B.函数介绍 [http://php.net/manual/zh/function.copy.php](http://php.net/manual/zh/function.copy.php) 5.读取文件内容 A.使用函数 ~~~txt file_get_contents($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.file-get-contents.php](http://php.net/manual/zh/function.file-get-contents.php) 6.修改文件文件内容 A.使用函数 ~~~txt file_put_contents($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.file-put-contents.php](http://php.net/manual/zh/function.file-put-contents.php) 7.删除文件 A.使用函数 ~~~txt unlink($filename) ~~~ B.函数介绍 [http://php.net/manual/zh/function.unlink.php](http://php.net/manual/zh/function.unlink.php) 8.删除文件夹 A.使用函数 ~~~txt 通过unlink($filename)删除文件后,再通过rmdir($path)删除空目录 ~~~ B.函数介绍 [http://php.net/manual/zh/function.rmdir.php](http://php.net/manual/zh/function.rmdir.php)