Logo KRISTOFFER BOHMANN  [BETA]
  • Forside
  • Om KB
  • Kompetencer
  • Referencer
Filesystem
basename
chgrp
chmod
chown
clearstatcache
copy
delete
dirname
diskfreespace
disk_free_space
disk_total_space
fclose
feof
fflush
fgetc
fgetcsv
fgets
fgetss
file
fileatime
filectime
filegroup
fileinode
filemtime
fileowner
fileperms
filesize
filetype
file_exists
file_get_contents
file_put_contents
flock
fnmatch
fopen
fpassthru
fputcsv
fputs
fread
fscanf
fseek
fstat
ftell
ftruncate
fwrite
glob
is_dir
is_executable
is_file
is_link
is_readable
is_uploaded_file
is_writable
is_writeable
lchgrp
lchown
link
linkinfo
lstat
mkdir
move_uploaded_file
parse_ini_file
parse_ini_string
pathinfo
pclose
popen
readfile
readlink
realpath
realpath_cache_get
realpath_cache_size
rename
rewind
rmdir
set_file_buffer
stat
symlink
tempnam
tmpfile
touch
umask
unlink
Home > PHP > Function > Filesystem > umask()

umask()

umask - Changes the current umask

Syntax

int umask (int $mask)

Arguments

  • mask - The new umask.

Description

umask() sets PHP's umask to mask & 0777 and returns the old umask. When PHP is being used as a server module, the umask is restored when each request is finished.

Version

PHP 4, 5

Return value

umask() without arguments simply returns the current umask otherwise the old umask is returned.
Kristoffer Bohmann, Ved Bjerget 12, DK- 9530 Støvring, Telefon +45 29 79 39 19, E-mail: