umask - How to set default permissions for new files created with php -
hi running centos server , want know how can set default chmod of newly created file created php fopen. @ moment doing 644 want 666 can specify setting?
like linux, php has chmod() command can invoked change file permissions.
see documentation here: http://php.net/manual/en/function.chmod.php
for default setting might try patrick fisher states here: setting umask of apache user
[root ~]$ echo "umask 000" >> /etc/sysconfig/httpd [root ~]$ service httpd restart
Comments
Post a Comment