网站开发与移动开发

博客园 首页 新随笔 管理

2008年4月12日 #

摘要: <?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 阅读全文
posted @ 2008-04-12 08:58 txf2004 阅读(203) 评论(0) 推荐(0) 编辑