chmod 777chmod 777 foldername will give read, write, and execute permissions for everyone. chmod 700 foldername will give read, write, and executechmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.