|
filepermsGets file permissions Description
intfalse fileperms(string
$filename )Gets permissions for the given file. Parameters
Return Values
Returns the file's permissions as a numeric mode. Lower bits of this mode
are the same as the permissions expected by chmod,
however on most platforms the return value will also include information on
the type of file given as
For local files, the specific return value is that of the
Returns Errors/Exceptions
Upon failure, an Examples
Example #1 Display permissions as an octal value
The above example will output: 1777 0644 Example #2 Display full permissions
The above example will output: -rw-r--r-- Notes
Tip
As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to Supported Protocols and Wrappers to determine which wrappers support stat family of functionality. See Also
|