chmod 777Using chmod 777 filechmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.