This script sets correct permissions to files and folder.
Usage: php -f '.basename(FILE).' '."\n\n"; project folder. Relative to $root " user, having right to this project. Use www-data for common case
Use it correctly, please. Script is potentially dangerous for you system. Make sure that you users CAN'T RUN it