PHP won't copy file as read/write just read only
I have all my directories including [/var/www/html, set to user:group - rick:www-data.
"rick" is in www-data group and www-data is in rick group. Permissions are 0775. When I try to copy a file, with php script, to one of these directories the permissions on the copied file are read-only. Any solutions out there to create read/write files. Thanks R |
Use chmod on the file.
|
Thanks for reply,
I would rather the script write the file directly rather than using bash after the fact. R |
Well, bash has nothing to do with this.
|
You can try umask also: https://www.php.net/manual/en/function.umask.php
Although it says Quote:
|
Quote:
Quote:
|
All times are GMT -5. The time now is 07:32 AM. |