chmod 777chmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.chmod 777 makes a filefolder readable, write-able and executable by everyone. So essentially on your site folder, you have given everyone permission to write to that folder, so you have