98)PHP,文件类型获取和创建文件夹

看手册  finfo这个类:This class provides an object oriented interface into the fileinfo functions. 

这个$mime_type就是文件的类型,这个文件的类型是在服务器端自己获取的

(2)创建文件夹

        

__set() 方法用于设置私有属性值。

      

原文地址:https://www.cnblogs.com/xiaoyoucai/p/7417590.html