Last active
August 29, 2015 14:10
-
-
Save pdewouters/f353786df2d2cd1faead to your computer and use it in GitHub Desktop.
Unix permissions
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
var_dump(chmod( $this->path->get_default_path(), 0555 )); | |
var_dump("owner of the current PHP script " . get_current_user()); | |
print_r(posix_getpwuid(fileowner($this->path->get_default_path()))); | |
var_dump(substr(sprintf('%o', fileperms($this->path->get_default_path())), -4)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment