PHP function fileowner()

Availability in PHP 4.0

Gets file owner

Parameters

Parameter Data type Default value Note
$filename string not Path to the file.

Return values

int

|bool the user ID of the owner of the file, or false on failure. The user ID is returned in numerical format, use posix_getpwuid to resolve it to a username.

Other resources

Official fileowner documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.