PHP fileowner() Function

PHP fileowner Function


Definition :

The PHP fileowner() function returns the user ID of the owner of the file.

Note: The results of this function are cached. Use clearstatcache() function to clear the cache.

Syntax

  fileowner(filename)

Parameter 
Parameter Description
filename Required. Specifies the path to the file to check

Given below example  Return the user ID (owner) of "demo.txt":

Output :  user ID: 0