Changing the default file permissions : umask « Utility Function « PHP






Changing the default file permissions

 
<?
$old_umask = umask(0077);
touch('secret-file.txt');
umask($old_umask);
?>
  
  








Related examples in the same category