PHP.nl

fileowner

fileowner

Gets file owner

 **fileowner** string $filename

Gets the file owner.

filenamePath to the file.

Returns the user ID of the owner of the file, return.falseforfailure. The user ID is returned in numerical format, use to resolve it to a username. posix_getpwuid

Voorbeeld: Finding the owner of a file

<?php
$filename = 'index.php';
print_r(posix_getpwuid(fileowner($filename)));
?>

filegroup``stat``posix_getpwuid