企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
>[success] ### 判断类型 1.获取文件类型 A.使用函数 ~~~txt filetype($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.filetype.php](http://php.net/manual/zh/function.filetype.php) 2.获取文件大小 A.使用函数 ~~~txt filesize($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.filesize.php](http://php.net/manual/zh/function.filesize.php) 3.获取创建时间 A.使用函数 ~~~txt filectime($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.filectime.php](http://php.net/manual/zh/function.filectime.php) 4.获取访问时间 A.使用函数 ~~~txt fileatime($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.fileatime.php](http://php.net/manual/zh/function.fileatime.php) 5.获取路径中文件名 A.使用函数 ~~~txt basename($path) ~~~ B.函数介绍 [http://php.net/manual/zh/function.basename.php](http://php.net/manual/zh/function.basename.php)