Get the file owner : File Property « File Directory « PHP
- PHP
- File Directory
- File Property
Get the file owner
<?php
$uid = fileowner("/etc/passwd");
// Returns "0" on Linux, as root typically has UID of 0.
echo $uid;
?>
Related examples in the same category