how to display all files form directory using PHP

How to show all files name under a directory in php. it is very easy task to list all the files of given directory.
here is the example of the php save your file in your file name like” read_dir.php” on your server. where you put the file, you can browse your file in Browser like http://localhost/your_dir/read_dir.php
this script show all the files name list of your folder “your_dir” on your server.

2 thoughts on “how to display all files form directory using PHP

  1. Just wish to say your article is as astounding. Hi you should try posting your ad on topdollarclassifieds.ca its free to post and it is now the fastest growing classifieds in North America.With local posting areas in your town and city’s in over 23 country’s in North America. We get on average about 1 million people a month coming to our site and more check us out at http://topdollarclassifieds.ca

Leave a Reply