Online karaoke with PHP (2)

Source: Internet
Author: User
Midif2.php? $ Ddir (. dir); get the dir directory object $ i0; while ($ entry $ d-read () {$ I $ i1; if ($ i2) {The purpose of greater than 2 is to remove the current directory ., and .. $ wq [] $ entry; put the directory details in the $ wq array} $ d-close (); close? HtmlheadtitleListtitlemetahttp-eq midif2.php
$ D = dir ("./dir"); // Get the dir directory object
$ I = "0 ";
While ($ entry = $ d-> read ()){
$ I = $ I 1;
If ($ I> 2) {// a value greater than 2 is used to remove the "." of the current directory and to indicate the "." of the previous directory ".."
$ Wq [] = $ entry; // add the directory details to the $ wq array
}
}
$ D-> close (); // close
?>


List

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.