Home  >  Article  >  Backend Development  >  PHP List all directories in the current folder_PHP tutorial

PHP List all directories in the current folder_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:26:48912browse

I didn’t want to open a virtual machine every time I tested PHP, so I built a test platform using XAMPP on my computer.

I have now imported my blog data locally and am preparing to write a template of my own.

Because I am used to creating a folder for different projects, and I don’t want to put other things in the root directory. In order to enter each project more conveniently, I want to create an index in the root directory. One project corresponds to a super Link. It's okay to use a static page, but if I add a new project, don't I have to update this static page? Programmers are generally very lazy, so they wrote a small program to list all directories in the current folder.

 ".$filename[$i]."

 /n"; } }

It’s a very simple and practical little program, just make a CSS file and beautify it a little!

PHP 列出当前文件夹中所有目录  帮客之家

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/822174.htmlTechArticleI didn’t want to open a virtual machine every time I tested PHP, so I built a test platform using XAMPP on my computer. I have now imported my blog data locally and am preparing to write my own template. ...
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