Query: fileowner
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FILEOWNER(3) 1 FILEOWNER(3) fileowner - Gets file ownerSYNOPSISint fileowner (string $filename)DESCRIPTIONGets the file owner.PARAMETERSo $filename - Path to the file.RETURN VALUESReturns the user ID of the owner of the file, or FALSE on failure. The user ID is returned in numerical format, use posix_getpwuid(3) to resolve it to a username.EXAMPLESExample #1 Finding the owner of a file <?php $filename = 'index.php'; print_r(posix_getpwuid(fileowner($filename))); ?>ERRORS/EXCEPTIONS Upon failure, an E_WARNING is emitted.NOTESNote The results of this function are cached. See clearstatcache(3) for more details. 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(3) family of functionality.SEE ALSOfilegroup(3), stat(3), posix_getpwuid(3). PHP Documentation Group FILEOWNER(3)
Related Man Pages |
---|
filetype(3) - php |
filesize(3) - php |
fileatime(3) - php |
is_file(3) - php |
is_writable(3) - php |
Similar Topics in the Unix Linux Community |
---|
permissions |
TCP Wrappers |
S-128: AcuraCMS 'stat.php' Vulnerability |
searching the name and sending mail |
Finding the Group Owner Name |