Created
December 12, 2013 15:52
-
-
Save jfreites/7930209 to your computer and use it in GitHub Desktop.
Set permissions for all files and folders recursively using PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $ruta is the path to folder, use the correct octal value in your case... | |
exec ("find $ruta -type d -exec chmod 0777 {} +"); | |
exec ("find $ruta -type f -exec chmod 0777 {} +"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment