Home > php教程 > php手册 > PHP实现网上点歌二

PHP实现网上点歌二

WBOY
Release: 2016-06-13 10:29:52
Original
971 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template