/p>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
disk online.font {
font-family: Consolas;
color: #369;
font-size: 12px;
}
.box {
font-family: Consolas;
font-size: 13px;
color: #369;
border: 1px solid #000;
}
.btn {
font-family: "微软雅黑";
font-size: 12px;
color: #FFF;
background-color: #369;
border: 1px solid #666;
width: 80px;
}
/*
* code written by mot
* 2012 - 5 - 20
*在根目录下面新建一个 名字为 x 的文件夹 存放上传文件
*/
if(isset($_REQUEST['del'])){
unlink($_REQUEST['del']);
}
set_time_limit(0);
if(isset($_POST['button']))
if(isset($_FILES['file'])){
move_uploaded_file($_FILES['file']['tmp_name'], ".\\x\\".$_FILES['file']['name']);
}
?>
File value="上传" /> |
文件名 | 类型 | MD5 | 大小 | 操作 |
---|
$hl = opendir(".\\x\\");
while(false != $info = readdir($hl)){
if($info == '.' || $info == '..') continue;
$x[] = $info;
}
if(isset($x))
foreach ($x as $file) {
$type = explode('.', $file);
$name = $type[0];
$type = $type[1];
$size = sprintf("%.2f",abs(filesize(".\\x\\".$file))/1024/1024);
?>
=$name ?>=$type ?>=md5_file(".\\x\\".$file)?>=$size." MB" ?> ">remove}
?>