chmod 777The reason 777 is bad is because other gives permissions to anyone who has access to your computer: for example, if you're hacked, the hackerchmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.