I don't see any "php user." There's an apache demon user called wwwrun. I made this user part of the user group, but 775 did not work. There are bits and pieces of answers here and there but they don't add up to a clear general statement that helps me.
So if my /srv/www directory is owned by me, DOCUMENT_ROOT is /srv/www/htdocs, the group is 'users', and the directory has 775 permissions, and I want to do this:
Code: Select all
$file = fopen("$DOCUMENT_ROOT/../orders.txt", "a");Thanks.