Get file owner in PHP

Description

The following code shows how to get file owner.

Example


//  w w w  . ja v  a 2  s .  c  om
<?php
$filename = 'index.php';
print_r(posix_getpwuid(fileowner($filename)));
?>




















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip