国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > PHP > 正文

PHP實現的簡單網絡硬盤

2020-03-22 20:09:52
字體:
來源:轉載
供稿:網友
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" html xmlns="http://www.w3.org/1999/xhtml" head meta http-equiv="Content-Type" content="text/html; charset=gb2312" / title disk online /title style type="text/css" .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; /style /head body div align="right" a href="upload.php" 操作完 一下刷新 /a /div * 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']); table width="100%" border="0" div form action="upload.php" method="post" enctype="multipart/form-data" p File input name="file" type="file" / /p p align="center" input name="button" type="submit" value="上傳" / /p /form /div /td /tr /table table width="100%" border="0" th width="40%" 文件名 /th th width="20%" 類型 /th th width="10%" MD5 /th th width="20%" 大小 /th th width="20%" 操作 /th /tr $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); td a href="/file/x/ =$file " =$name /a /td td =$type /td td =md5_file(".//x//".$file) /td td =$size." MB" /td td a href="upload.php del= =".//x//".$file " remove /a /td /tr /table /body /html 希望本文所述對大家的php程序設計有所幫助。PHP教程

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 长乐市| 安岳县| 中方县| 酒泉市| 交城县| 灵宝市| 铜山县| 海林市| 象山县| 凤翔县| 萨迦县| 雅安市| 梅河口市| 阳朔县| 彰武县| 松桃| 台东县| 建昌县| 沛县| 湟中县| 泸溪县| 西华县| 锡林浩特市| 叶城县| 城固县| 汽车| 韶山市| 南宁市| 德保县| 庆元县| 常山县| 寻乌县| 玛沁县| 阜康市| 乌鲁木齐县| 乌苏市| 荔波县| 邹城市| 钟山县| 桃园市| 武陟县|