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

php 经典安全文件上传代码

WBOY
WBOYOriginal
2016-06-08 17:29:391398browse
<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];

 /* 

Statement:
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