成人精品一区二区三区中文字幕-成人精品一区二区三区-成人精品一级毛片-成人精品亚洲-日本在线视频一区二区-日本在线视频免费

導航首頁 ? 技術教程 ? php目錄操作函數之獲取目錄與文件的類型
全站頭部文字 我要出現在這里
php目錄操作函數之獲取目錄與文件的類型 725 2023-12-09   


<?php
$dir = "./";

// Open a known directory, and proceed to read its contents
if (is_dir($dir))
{
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file : filetype: " . filetype($dir . $file) . "n"."<br />";
}
closedir($dh);
}
}
?>

輸出結果:

filename: . : filetype: dir
filename: .. : filetype: dir
filename: cms : filetype: dir
filename: index.php : filetype: file
filename: index.php.bak : filetype: file
filename: mvc : filetype: dir
filename: shop : filetype: dir
filename: shop.rar : filetype: file
filename: xampp : filetype: dir


主站蜘蛛池模板: mind and hand| 巨神战击队| 屈原话剧| 白上之黑电影| 中诺矫平机| 色戒 在线| 雪天使演员表介绍| 电影田螺姑娘| a级在线| 李柯以写真照片| 性的秘密| 殷雪梅| 在线观看xxxx| 新子| 惊天十二小时| 好像怎么造句 二年级| 刘涛的21部毛片| 正在恋爱中全集在线观看| 永远的经典影片永远的| 初三化学试卷| 日韩 欧美 视频| 赵士杰| 爱情买卖网站 电影| 孽扣| 开心鬼救开心鬼| 老爸的筒子楼 电视剧| 形象管理| 就爱小姐姐| 追捕演员表| 草刈正雄| 安息2| 茅山道士在线观看| 饥渴的爱| 师奶madam 电视剧| 电影世界冒险记| 蛇欲电影| jesse jane| 条件概率经典例题| 小姐与流氓| 房子传| 飞刀手|

!!!站長長期在線接!!!

網站、小程序:定制開發/二次開發/仿制開發等

各種疑難雜癥解決/定制接口/定制采集等

站長微信:lxwl520520

站長QQ:1737366103