摘要: input : 检测真实的图片类型: getimagesize($file) 得到指定图片的信息。如果是图片返回数组 不是的话返回false. tmp_name 上传上来的临时文件。 阅读全文
posted @ 2015-04-21 10:41 BiuBiuBiu666 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1:function get_extension($file){//strrchr 返回 。jpg substr :1 是从1开始。 substr(strrchr($file,'.'),1) }2:function get_extension($file){//strrpos 返回出现... 阅读全文
posted @ 2015-04-21 10:18 BiuBiuBiu666 阅读(202) 评论(0) 推荐(0) 编辑