Remove an empty directory in PHP

Description

The following code shows how to remove an empty directory.

Example


  //ww w  .  jav  a  2 s .  co  m
<?php
    $path = "images";
    if(!rmdir($path)){
        echo ("Could not remove $path");
    }
?>




















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip