• <label id="pxtpz"><meter id="pxtpz"></meter></label>
      1. <span id="pxtpz"><optgroup id="pxtpz"></optgroup></span>

        當(dāng)前位置:雨林木風(fēng)下載站 > 技術(shù)開發(fā)教程 > 詳細(xì)頁(yè)面

        文件清單下文(酷)

        文件清單下文(酷)

        更新時(shí)間:2020-02-09 文章作者:未知 信息來源:網(wǎng)絡(luò) 閱讀次數(shù):

        [程序語(yǔ)言] PHP

        [源碼來源] http://px.sklar.com
        [功能描述] 該腳本從一個(gè)指定目錄中讀取文件名,之后把這些文件名返回到數(shù)組中,還包括文件個(gè)數(shù)。

        源代碼如下:

        <?
        /*
        This script read the filenames from a specified directory and returns them in an array.
        The number of filenames is also returned.
        Copyleft(L) 1999 Eric Persson, eric@persson.tm, http://www.persson.tm/scripts/
        */
        Function searchdir($basedir)
        {
        global $filelisting, $number; //defines the two variables as global so they can be accessed from outside the function
        unset($filelisting); //kills $filelisting in case it have been used earlier in the script
        unset($number); //same as above
        $handle=opendir($basedir);
        while ($file = readdir($handle)) {
        if ($file=="." or $file=="..") {
        }
        else {
        $filelisting[]="$basedir$file";
        };
        };
        $number=sizeof($filelisting); //gets the size of the array
        };
        searchdir("./"); //runs the function to search the current directory
        echo $filelisting[1]; //echos the second value in the array
        echo $number; //echos the size of the array
        ?>

        溫馨提示:喜歡本站的話,請(qǐng)收藏一下本站!

        本類教程下載

        系統(tǒng)下載排行

        主站蜘蛛池模板: 1区2区3区产品乱码免费| 一级毛片大全免费播放| 免费无码成人AV在线播放不卡| 一级毛片aaaaaa免费看| 久久精品国产亚洲5555| 亚洲精品国产精品乱码在线观看| 亚洲av综合日韩| 日韩免费观看视频| 中文字幕亚洲图片| 中文永久免费观看网站| 亚洲色成人网站WWW永久| 国产自国产自愉自愉免费24区 | 亚洲国产亚洲片在线观看播放| 精品亚洲成A人在线观看青青| 啦啦啦手机完整免费高清观看| 亚洲欧洲AV无码专区| 麻豆国产入口在线观看免费| 国产亚洲婷婷香蕉久久精品 | 一级毛片免费一级直接观看| 亚洲真人日本在线| 亚洲 欧洲 视频 伦小说| 亚洲视频在线观看免费| 久久久久久亚洲AV无码专区| 九九精品免费视频| 亚洲国产精品成人AV在线| 亚洲色偷偷狠狠综合网| a毛片免费全部播放完整成| 成人免费777777| 又粗又长又爽又长黄免费视频| 亚洲人精品午夜射精日韩| 99爱视频99爱在线观看免费| 亚洲精品无码少妇30P| 激情综合色五月丁香六月亚洲| 在线人成免费视频69国产| 亚洲综合校园春色| 亚洲精品国精品久久99热| 在线观看的免费网站无遮挡| 亚洲国语精品自产拍在线观看| 四虎精品成人免费视频| 免费成人高清在线视频| 亚洲另类无码专区首页|