Easy Tutorial
❮ Php Closure Call Php Serialize Function ❯

PHP fileowner() Function



Definition and Usage

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

If successful, the function returns the user ID. If it fails, it returns FALSE.

Syntax

Parameter Description
filename Required. Specifies the file to check.

Tips and Notes

Note: The result of this function is cached. Use clearstatcache() to clear the cache.

Note: This function does not work on Windows systems.

Tip: Use posix_getpwuid() to convert the user ID to a username.


Examples


❮ Php Closure Call Php Serialize Function ❯