标签: 文件操作

1 篇文章

PHP 文件操作实用代码
1、检测目录是否存在 function check_dir($path, $create = false) { if (is_dir($path)) { return true; } return false; } 2、创建目录 function create_dir($path) { if (! file_exists($path)) { if …