PHP mkdir() definition and usage

高洛峰
Release: 2023-03-03 20:22:02
Original
1252 people have browsed it

Usage:
mkdir(path,mode,recursive,context)
Parameter Description
path required. Specifies the name of the directory to be created.
mode required. Specify permissions. The default is 0777.
recursive Required. Specifies whether to set recursive mode.
context required. Specifies the environment for a file handle. Context is a set of options that modify the behavior of the stream.
mkdir() attempts to create a new directory specified by path.
The default mode is 0777, which means the greatest possible access.
mkdir("something");
?>


For more articles related to the definition and usage of PHP mkdir(), please pay attention to the PHP Chinese website!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template