PHP simple use of rmdir to remove directories, Phprmdir directory usage
This example describes the simple use of PHP to delete a directory through rmdir. Share to everyone for your reference. The specific analysis is as follows:
PHP can delete the directory on the server through the RmDir () function, which uses the Is_dir () function, which is used to determine whether the specified string is a directory, the deletion succeeds, or false.
<?phpif (!is_dir (' Exampledir ')) { mkdir (' Exampledir ');} RmDir (' Exampledir ');? >
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/969498.html www.bkjia.com true http://www.bkjia.com/PHPjc/969498.html techarticle php Simple use of rmdir to remove directories, Phprmdir directory Usage This example describes the simple use of PHP to delete a directory by rmdir. Share to everyone for your reference. The specific analysis is as follows: ...