chown('/path/to/file', 'user_name');
chgrp('/path/to/file', 'user_name');
chmod('/path/to/file', 0777);