Gen. partnerAlgotech

PHP function fileowner()

|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.

Jan Barášek1 min read

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

You might also like

More from Documentation
Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.