Home >Backend Development >PHP Tutorial >PHP mkdir() definition and usage

PHP mkdir() definition and usage

高洛峰
高洛峰Original
2016-12-21 15:21:441273browse

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!


Statement:
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