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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -