Are you able to run commands via PHP like exec() to preform particular
task? Generally apache is set to www-data as the user and group and
from there you dont really have to worry about the permissions too
much, however if this isnt avoidable and you are not able to change
this the best bet is to set up a php script to execute when needed
(Like before an upload is about to take place or after) and run
exec('chown -R user:group /path/to/folder');Thanks to http://php.net/manual/en/function.exec.php there is comment that makes short work of finding out if this is active A simple function to see if exec() is enabled on the server: <?php function exec_enabled() { $disabled = explode(', ', ini_get('disable_functions')); return !in_array('exec', $disabled); } ?> Just my 5cents worth Let me know how you go :) -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
