Secure PHP Image Uploader
来源:互联网 发布:mac制作win10启动盘 编辑:程序博客网 时间:2024/06/05 08:36
About
I put together this class to act as a one step, no hassle image processor for file uploads. After searching the web for a short while trying to find something which would not only check the errors HTML returns, but also deal with security vulnerabilities and resize the image, I eventually decided it would be easier for me to build one myself. And now that I have it working and fairly secure, I've decided to release it for anyone's use. I've tried to address all the security concerns I can think of, but if anyone spots any other security holes, please do let me know.
Instructions
After including ImgUploader.class.php (found in the download at the bottom of the page) you simply construct an instance of the class for each image you're uploading, and then call upload() or upload_unscaled() for each location you want to save the image to. More detailed instructions can also be found in the zip file.
include 'imgUploader.class.php'; $img = new ImgUploader($_FILES['file']); if($name = $img->upload('green', '113', 400,400)) echo '<img src="'.$name.'" alt="name" />'; else echo 'ERROR! '.$img->getError();
Download: Zip Archive
Size: 3.06kb
anoTher:http://www.0x000000.com/index.php?!=1&read=80|3
- Secure PHP Image Uploader
- Image Uploader 图片上传工具
- Aurigma Image Uploader的ActiveX / JAVA图像文件上传控件概述
- php 安装 Secure Shell2
- Secure File Upload with PHP
- How to update Docker image to maintain your containers secure
- Seven habits for writing secure PHP applications
- Useful functions to provide secure PHP application
- This file uploader is disabled. Please check the "editor/filemanager/connectors/php/config.php" file.
- KISSY uploader
- Web Uploader
- Web Uploader
- weui upLoader
- WEUI.Uploader
- Image watermark with PHP
- Analyse Image Colors using PHP
- JSP Uploader上传文件
- Rapid Uploader 1.13 russian
- Reflexil v0.7
- 页面一postback,它就显示页面的最顶端,怎样让它定位在某一位置?
- 脱壳的艺术--7. 工具
- 数据加密和解密
- TD的noWrap属性使用注意事项
- Secure PHP Image Uploader
- 《当幸福来敲门》的生活指向...
- NekoHTML HTML扫描器和标签补偿器
- 求职面试必看:巨牛的招聘题目[转载]
- .net remoting 配置文件
- 脱壳的艺术--8 参考
- Hibernate学习笔记 - Hibernate中持久化对象的状态转换规则
- 计算基础正在发生根本变革——解读“计算2.0”
- 社会生活中的著名法则