Delete an empty directory called dir1 : Directory Create Delete : File Directory PHP Source Code


PHP Source Code » File Directory » Directory Create Delete »

 

Delete an empty directory called dir1


 
<?php
   $dir_delete = "/home/fake/dir1";
   
   if (rmdir ($dir_delete)) {
         echo "Directory deleted successfully.""n";
   }else {
         echo "Could not delete the directory.""n";
   }
?>



           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» Directory Create Delete