PHP umask May 12, 2012 Pramod T P It changes file permissions of file Example <?php $file = umask(0); chmod(“test.txt”, 0755); umask($file) ?>