As we all know, the PHP rmdir () function is used to delete empty directories, but if you want to delete a non-empty directory, we must delete the files or subdirectories in the non-empty directory, this article introduces how PHP uses recursive
PHP rmdir () functionRmdir― Delete Empty DirectoryGrammar:BOOL RmDir (String $dirname [, Resource $context])An attempt was made to delete the directory specified by DirName. The directory must be empty and have the appropriate permissions. Failure
First, let's introduce the rmdir () function.
PHP rmdir () function
rmdir-Delete Empty Directory
Grammar:
BOOL RmDir (String $dirname [, Resource $context])
An attempt was made to delete the directory specified by DirName. The directory must be
RM (1) User Commands RM (1)NAMERm-remove Files or directoriesSynopsisRM [OPTION] ... FILE ...DESCRIPTIONThis manual page documents the GNU version of RM. RM removes eachSpecified file. By default, it does not remove directories.If the-i
Directory Management ls CD pwd mkdir rmdir tree################################################################LS: Display directoryCD: Switch directoriesPWD: Show current directorymkdir: Creating a DirectoryRMDIR: Deleting a directoryTree: Show
Yesterday I learned the command to create a directory mkdir, and then learn about the commands for deleting files and directories in Linux: the RM command.RM is a dangerous command, especially when used, especially for novices, or the entire system
Differences between Linux commands rmdir and rm
Rmdir is a command that corresponds to mkdir. Mkdir is used to create a directory, while rmdir is the command to delete a directory.
The rm command can delete files or directories at the same
We all know that PHP is a small open source technology, as more and more people realize its practicality and gradually developed. Rasmus Lerdorf released the first version of PHP in 1994. Since then it has developed rapidly and has been developed to
deleting files and directories in PHP is actually very simple as long as two functions one is unlink a rmdir function, if you want to implement delete directories and directories under the file we need to use the recursive operation.
Function code:
Explains how to use the PHP function rmdir. In PHP, there are many functions for programming, and their functions are also very powerful. Today we will introduce to you that PHP is a type of function embedded in HTML and server in PHP. There are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.