Changing file permissions : chmod « File Directory « PHP






Changing file permissions

 
<?php
chmod('/home/user/secrets.txt',0400);
?>
  
  








Related examples in the same category

1.Changing File Permissions and Ownership
2.Using the chmod() Function
3.chmod() function changes the mode of filename to permissions.