Gen. partnerAlgotech

PHP function fileowner()

Gets file owner

|
September 11, 2019

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

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.