Checks if a path's permissions can be changed
boolean
canChmod
(string $path)
-
string
$path: Path to check
Checks for snooping outside of the file system root
void
check
(string $path)
-
string
$path: A file system path to check
Function to strip additional / or \ in a path name
string
clean
(string $p_path, [boolean $p_addtrailingslash = true])
-
string
$p_path: The path to clean
-
boolean
$p_addtrailingslash: True if the function shoul add a trailing slash
Get the permissions of the file/folder at a give path
string
getPermissions
(string $path)
-
string
$path: The path of a file/folder
Method to determine if script owns the path
boolean
isOwner
(string $path)
-
string
$path: Path to check ownership
Chmods files and directories recursivly to given permissions
boolean
setPermissions
(string $path, [string $filemode = '0644'], [string $foldermode = '0755'])
-
string
$path: Root path to begin changing mode [without trailing slash]
-
string
$filemode: Octal representation of the value to change file mode to [null = no change]
-
string
$foldermode: Octal representation of the value to change folder mode to [null = no change]