search
Homephp教程php手册php umask 函数教程

php umask 函数教程

Jun 13, 2016 am 11:17 AM
phpumaskvaluefunctioninternationalitychangeTutorialof

php umask 函数教程  

umask值
( PHP 4中, PHP 5中)

的umask -改变了当前的umask

描述
诠释的umask ( [国际$遮罩] )
的umask ( )设置PHP的umask值,以掩盖和0777并返回旧的umask 。当PHP被用作服务器模块, umask被恢复时,每个请求完成。

参数

遮罩
新的umask 。


返回值
umask值( )不带参数只返回当前的umask否则旧的umask被退还。

实例

例如# 1的umask ( )的例子

$old = umask(0);
chmod("/path/some_dir/some_file.txt", 0755);
umask($old);

// Checking
if ($old != umask()) {
    die('An error occured while changing back the umask');
}
?>


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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools