views:

50

answers:

2

Is this possible with php?

+1  A: 

Sure it is possible with php. php has nothing to do with the permission to write. This is solely the responsibility of the filesystem. Whatever the permissions pertaining to the user of the process (which is running the php script) will be honoured.

txwikinger
A: 

It sure is.

  • Make the directory owned by the user as which PHP is running.
  • Make the directory owned by a group that PHP's user is in.
  • Use an ACL to give PHP's user access to the folder, if your system supports ACLs.
Sidnicious