read()){ $i=$i+1; if($i>2){ //The purpose of greater than 2 is to remove the "." in the current directory, and to indicate the previous ".." of a directory $wq[]=$entry; //Put the directory details into the $wq array} } $d-"/> read()){ $i=$i+1; if($i>2){ //The purpose of greater than 2 is to remove the "." in the current directory, and to indicate the previous ".." of a directory $wq[]=$entry; //Put the directory details into the $wq array} } $d-">

Home  >  Article  >  Backend Development  >  Why can’t the wireless network connect to PHP to implement online song request (2)

Why can’t the wireless network connect to PHP to implement online song request (2)

WBOY
WBOYOriginal
2016-07-29 08:34:381267browse

midif2.php
$d=dir("./dir"); //Get the dir directory object
$i="0";
while($entry=$d->read()){ $ $ I = $ i+1;
IF ($ i & gt; 2) {// The purpose of being greater than 2 is to remove the current directory ".", And the ".."
$ wq [] = $ entry; //Put the directory details into the $wq array
}
}
$d->close(); ;/title>




【This article The copyright is jointly owned by the author and Aosuo.com. If you need to reprint, please indicate the author and source]

The above has introduced why the wireless network cannot be connected and how to implement online song request with PHP (Part 2), including the content of why the wireless network cannot be connected. I hope it will be helpful to friends who are interested in PHP tutorials.

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