references:joomla.framework:filesystem:jpath-setpermissionsTable of Contents
setPermissions
Changes permissions (using the PHP chmod function) on files and folders recursively to the specified permissions. Syntaxboolean setPermissions ( $path, $filemode, $foldermode )
ExamplesExample jimport( 'joomla.filesystem.path' ); if (JPath::setPermissions( JPATH_ROOT . '/libraries', '222' ) ) { echo "Permissions changed!"; } else { echo "Could not set permissions!"; } might produce: Result Permissions changed! Discussion |


