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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -