chmod 777777 means the file directory is granted read, write and execute permissions for all three user classes, including the owner, group members, and others.chmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.