Get the user ID (owner) of the specified file in PHP

Description

The following code shows how to get the user ID (owner) of the specified file.

Example



<?php
    echo fileowner("a.php");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    File »




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