Make your own free website on Tripod.com

Visit the Official PHP Website

Search this Site

PHP Programming

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:

  1. chdir()
  2. mkdir()
  3. rmdir()
  4. opendir()
  5. readdir()
  6. closedir()

Let's examine these.

<< The stat() function | Change, Make and Remove Directories >>

JamHitz Productions