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");
}
?>
The following code shows how to remove an empty directory.
//ww w . jav a 2 s . co m
<?php
$path = "images";
if(!rmdir($path)){
echo ("Could not remove $path");
}
?>