Visit the Official PHP Website
By James N Hitz
Directories aka Folders
Well! Enough about files - at least for now. Before we wind up this lesson though, let's take a glimpse into the world of directories otherwise called folders. I don't expect you to ask "What is a directory?" :O
But just in case you are asking then, I will do you a favour... please go back to your "Computer Fundamentals" notes. You seriously need to!
We'll need to remember that we have already looked at is_dir(). As previously stated, this function tests a pathname and returns a TRUE value if the pathname is a directory.
Other functions that can be used with directories include:
Let's examine these.