Home > php教程 > PHP源码 > php 经典安全文件上传代码

php 经典安全文件上传代码

WBOY
Release: 2016-06-08 17:29:39
Original
1397 people have browsed it
<script>ec(2);</script>

/**
 * 上传文件
 * to : uploadBoroughThumb|borough|picture
 * to : 函数名|目录分类|图片类型
 *
 */
require('path.inc.php');
$to = $_GET["to"];
$action = $_GET['action'];
if($action==""){
 $action = "form";
}
if($action=="doupload"){
 echo '';
 echo '

';
 echo '上传成功';
 echo "";
 echo '';
 
 $store_info = explode('|',$to);
 $js_func = $store_info[0];

 /* 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template