Display the drop-down list

fileowner()

« filemtime | filter_has_var »
<?php
$int 
fileowner (
    
  // string $filename
);

// shows the user information
if ($int !== false and function_exists("posix_getpwuid")) {
    
$array posix_getpwuid($int);
}
?>
Result
$int = '19991'
$array = [
  
'name' => 'xozhoz',
  
'passwd' => 'c',
  
'uid' => '19991',
  
'gid' => '353',
  
'gecos' => 'xozhoz',
  
'dir' => '/kynxo.460/xozhoz',
  
'shell' => '/byn/rezham',
]
PBX notice : the result is hashed with pbx_hash for security reasons.
Examples
#1 fileowner  ("/home/micmap/cgi-bin/php-by-example/functions/f/fileowner.php")
#2 fileowner  ("/path/to/foo.txt")
See also
filegroup, function_exists, getmyuid, pbx_hash, posix_getpwuid