Home  >  Article  >  Backend Development  >  PHP实现网上点歌二_PHP教程

PHP实现网上点歌二_PHP教程

WBOY
WBOYOriginal
2016-07-13 17:30:25648browse

midif2.php

$d=dir("./dir"); //得到dir目录对象
$i="0";
while($entry=$d->read()){
$i=$i+1;
if($i>2){ //大于2的目的是去掉当前目录的".",和表示前一个目录的".."
$wq[]=$entry; //把目录明细放入$wq数组中
}
}
$d->close(); //关闭
?>


List

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn