Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Delete directory in php

Sun Oct 26, 2008 8:39 pm

Code:

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






Post a reply
  Related Posts  to : Delete directory in php
 Creating a Directory in php     -  
 php Directory lister     -  
 phone directory     -  
 Get Directory size in java     -  
 Listing the Contents of a Directory     -  
 Print all files in a directory     -  
 Read the content from directory     -  
 Upload File to a new directory     -  
 invalid drive or directory     -  
 DELETE Commands     -  

Topic Tags

PHP Files and I/O