A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 5: Plug-in 24 - Directory List

When you need to know the contents of a directory on your server, for example, because you support file uploads and need to keep tabs on them, this plug-in returns all the filenames using a single function call.

The Figure shows the local directory contents being listed.