摘要: <?php/**文件操作类,createbylinyupark,*/classFile{protected$path;//根目录例如./uploadfunction__construct($path){if(!is_dir($path))mkdir($path,0777);$this->path=$path;}/**#文件上传函数*@input_name为表单中type为file的name值*@ext_arr为允许使用的扩展名数组,请用小写,例array('jpg','gif')*@max_size文件大小,单位b,上限请修改php.ini中的pos 阅读全文