Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: fileowner - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

fileperms" width="11" height="7"/> <filemtime
Last updated: Sun, 25 Nov 2007

view this page in

fileowner

(PHP 4, PHP 5)

fileowner — ファイルの所有者を取得する

説明

int fileowner ( string $filename )

ファイルの所有者を取得します。

パラメータ

filename

ファイルへのパス。

返り値

ファイルの所有者のユーザ ID を返し、エラーの場合は FALSE を返します。 ユーザ ID は数値で返されます。ユーザ名に変換するには posix_getpwuid() を使用してください。

注意

注意: この関数の結果は キャッシュされます。詳細は、clearstatcache() を参照してください。

ヒント

PHP 5.0.0 以降、この関数は、 何らかの URL ラッパーと組合せて使用することができます。 どのラッパーが stat() ファミリーをサポートしているか のリストについては、サポートされるプロトコル/ラッパー を参照してください。

参考



add a note add a note User Contributed Notes
fileowner
joacorck at gmail dot com
26-Feb-2007 10:20
This function only works if the permissions are more less than 666
29-Jan-2006 09:58
Small note: the function resolves symbolic links. That is, if the link is created by user 999 and maps to a file owned by user 666, this function returns 666 :(

fileperms" width="11" height="7"/> <filemtime
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites