1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > php 读取目录文件夹列表程序

php 读取目录文件夹列表程序

时间:2022-01-23 20:36:10

相关推荐

php 读取目录文件夹列表程序

php教程|PHP源码

nbsp,quot,folders,aFolders,sFile

php教程-PHP源码

ec(2);php 读取目录文件夹列表程序

客户管理系统 asp源码,vSCode乐鑫插件怎么用,ubuntu清理/home,yum源安装tomcat,爬虫抓取angularjs,php 分词检索,seo兼职工作手游推广,网站ip扫描工具lzw

function GetFolders( $resourceType, $currentFolder )

{

// Map the virtual path to the local server path.

$sServerDir = ServerMapFolder( $resourceType, $currentFolder, ‘GetFolders’ ) ;

收费视频网源码,ubuntu下tpm编程,tomcat8和9的区别,携程网抢票爬虫,php切换版本后出现跨域,故障代码SEOlzw

// Array that will hold the folders names.

$aFolders = array() ;

php168分类信息v7源码,ubuntu刷机精灵,tomcat保留十五天日志,R爬虫 阻止连接,PHP怎么读取数组两个内容,seo823lzw

$oCurrentFolder = opendir( $sServerDir ) ;

while ( $sFile = readdir( $oCurrentFolder ) )

{

if ( $sFile != ‘.’ && $sFile != ‘..’ && is_dir( $sServerDir . $sFile ) )

$aFolders[] = ” ;

}

closedir( $oCurrentFolder ) ;

// Open the “Folders” node.

echo “” ;

natcasesort( $aFolders ) ;

foreach ( $aFolders as $sFolder )

echo $sFolder ;

// Close the “Folders” node.

echo “” ;

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。