# PHP 函数:fileowner()

**URL:** <https://www.isharkfly.com/t/php-fileowner/2665>\
**Category:** PHP\
**Created:** [October 15, 2012, 2:24am UTC](https://www.isharkfly.com/t/php-fileowner/2665 "2012-10-15T02:24:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 15, 2012, 2:24am UTC](https://www.isharkfly.com/t/php-fileowner/2665/1 "2012-10-15T02:24:32Z")

</div>

fileowner

取得文件的拥有者。

语法: int fileowner(string filename);

返回值: 整数

函数种类: 文件存取

内容说明

本函数返回指定文件拥有者的 UID 值。返回 false 表示发生错误。返回值放在快取缓冲区中，可以参考 clearstatcache()。
