(PHP 4, PHP 5)
fileowner — Gets file owner
Gets the file owner.
Path to the file.
Returns the user ID of the owner of the file, sau FALSE în cazul eșecului. The user ID is returned in numerical format, use posix_getpwuid() to resolve it to a username.
Example #1 Finding the owner of a file
<?php
$filename = 'index.php';
print_r(posix_getpwuid(fileowner($filename)));
?>
Upon failure, an E_WARNING is emitted.
Notă: Rezultatele acestei funcții sunt stocate în cache. Accesați clearstatcache() pentru mai multe detalii.
Începând cu PHP 5.0.0 această funcție poate fi utilizată de asemenea cu unele învelișuri URL. Referiți-vă la List of Supported Protocols/Wrappers pentru lista învelișurilor care susțin familia de funcționalitate stat().