<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 文件管理原碼 >[success] ~~~ <html> <head> <title>文件管理</title> <meta charset='utf-8' /> </head> <body> <?php //定義要查看的目錄 $dir="/"; //先判斷$_GET['a']是否已經傳值 防止NOTICE錯誤 if(isset($_GET['a'])){ //選擇判斷要執行的操作 switch($_GET['a']){ case 'creat': //新建文件 $filename=$_POST["filename"]; $filename=rtrim($dir,"/")."/".$filename; //寫入文件 寫入一個空字符串 file_put_contents($filename,""); break; case 'del': //刪除文件 unlink($_GET['filename']); break; case 'update': //修改文件 file_put_contents($_POST['filename'],$_POST['content']); echo "修改成功"; header("refresh:1;url=index.php"); break; } } ?> <center> <h1>文件管理</h1> <form action='index.php?a=creat' method='post'> 文件:<input type='text' name='filename' /> <input type='submit' value='新建' /> </form> <table border='1' width='900' cellpadding='5' cellspacing='0'> <tr> <th>文件名</th> <th>類型</th> <th>大小</th> <th>創建時間</th> <th>操作</th> </tr> <?php //遍歷目錄 $dd=opendir($dir); while(false !== ($f=readdir($dd))){ //過濾點 if($f == "." || $f == ".."){ continue; } //拼路徑 $file=rtrim($dir,"/")."/".$f; //防止中文亂碼 $f2=iconv("gb2312","utf-8",$f); echo "<tr>"; echo "<td>{$f2}</td>"; echo "<td>".filetype($file)."</td>"; echo "<td>".filesize($file)."</td>"; echo "<td>".filectime($file)."</td>"; echo "<td align='center'> <a href='index.php?a=edit&filename={$file}'>修改</a>| <a href='index.php?a=del&filename={$file}'>刪除</a> </td>"; echo "</tr>"; } ?> </table> <?php if(isset($_GET['a']) && $_GET['a']=='edit'){ echo "<hr/>"; echo "<form action='index.php?a=update' method='post'>"; echo "文件名:<input type='text' name='filename' readonly value='{$_GET['filename']}' />"; echo "<br/><br/>"; echo "<textarea name='content' rows='5' cols='30'>".file_get_contents($_GET['filename'])."</textarea>"; echo "<br/><br/>"; echo "<input type='submit' value='保存修改' />"; echo "</form>"; } ?> </center> </body> </html> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看