Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP fileowner() Function

PHP fileowner() Function


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual


Definition and Usage

The fileowner() function returns the user ID (owner) of a specified file.

Returns the user ID on success, or FALSE on failure.

Syntax

fileowner(filename)

Parameters Description
filename Required. Specifies the file to check.

Tips and Notes

**Note:** The results of this function are cached. Use clearstatcache() to clear the cache.

**Note:** This function does not work on Windows systems.

**Tip:** Use posix_getpwuid() to convert a user ID to a user name.


Example


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual