chmod 777chmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.Setting 777 permissions (chmod 777) to a file or directory means that it will be readable, writable and executable by all users and may pose