Delete a directory and all its files and sub-directories?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laredotornado@gmail.com

    Delete a directory and all its files and sub-directories?

    Hi,

    Does anyone know of, or have code that will delete a php directory and
    all its sub directories and files. "unlink" and "rmdir" don't do this.
    I'd prefer not to use "exec" with a system call but if that's the only
    way, so be it.

    I'm using PHP 4.4.4.

    Thanks, - Dave

Working...