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)
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>