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