Home > php教程 > php手册 > body text

PHP mkdir()定义和用法

WBOY
Release: 2016-06-13 12:25:14
Original
1541 people have browsed it

使用方法:
mkdir(path,mode,recursive,context)
参数 描述
path 必需。规定要创建的目录的名称。
mode 必需。规定权限。默认是 0777。
recursive 必需。规定是否设置递归模式。
context 必需。规定文件句柄的环境。Context 是可修改流的行为的一套选项。
mkdir() 尝试新建一个由 path 指定的目录。
默认的 mode 是 0777,意味着最大可能的访问权。
mkdir("something");
?>

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template