日本国产亚洲-日本国产一区-日本国产一区二区三区-日本韩国欧美一区-日本韩国欧美在线-日本韩国欧美在线观看

當前位置:雨林木風下載站 > 技術開發教程 > 詳細頁面

文件清單下文(酷)

文件清單下文(酷)

更新時間:2020-02-09 文章作者:未知 信息來源:網絡 閱讀次數:

[程序語言] PHP

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

源代碼如下:

<?
/*
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
?>

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

主站蜘蛛池模板: 波多野结衣视频在线免费观看 | 日韩国产成人精品视频人 | 日韩精品第一页 | 国产成人高清亚洲一区91 | 亚洲欧美视频在线播放 | 欧美亚洲国产成人高清在线 | 夜夜操天天插 | 亚洲欧美日韩国产精品 | 国产一级特黄生活片 | 久久影视免费观看网址 | 久久www免费人成高清 | 欧美日韩xxx| 91桃色成人免费 | 2021午夜国产精品福利 | 日韩三级理论 | 国产福利区一区二在线观看 | 亚洲黄页网站 | 成人福利视频在线观看网址 | 欧美5g影院 | 欧美专区在线 | 日韩福利视频一区 | 亚拍一区| 综合伊人 | 狠狠色噜狠狠狠狠 | 伊人色综合97 | 国产麻豆精品在线 | 国产九九热视频 | 色琪琪永久远网址 | 欧美精品第56页在线视频观看 | 69国产成人综合久久精 | 国产乡下三片在线观看64 | 精品久久久久久久久久 | 在线看片欧美 | 欧美激情视频一级视频一级毛片 | 久久亚洲美女久久久久 | 亚洲精品欧美日韩 | 国产成人精品一区二区免费 | 国产一区二区免费 | 日本免费高清 | 欧美福利视频一区在线 | 加勒比一本大道香蕉在线视频 |