Skip to content

Instantly share code, notes, and snippets.

@biswarupadhikari
Created September 7, 2013 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biswarupadhikari/6475025 to your computer and use it in GitHub Desktop.
Save biswarupadhikari/6475025 to your computer and use it in GitHub Desktop.
Change File FolderPermission Recursively via PHP Script
<?php
$curDir=dirname(__FILE__);
exec ("find $curDir -type d -exec chmod 0755 {} +");
exec ("find $curDir -type f -exec chmod 0644 {} +");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment