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

search for in the

SplFileInfo::getPath> <SplFileInfo::getMTime
Last updated: Fri, 13 Nov 2009

view this page in

SplFileInfo::getOwner

(PHP 5 >= 5.1.2)

SplFileInfo::getOwnerファイルの所有者を取得する

説明

public int SplFileInfo::getOwner ( void )

ファイルの所有者を取得します。オーナー ID は数値形式で返されます。

パラメータ

この関数にはパラメータはありません。

返り値

オーナー ID を数値形式で返します。

エラー / 例外

エラー時に RuntimeException をスローします。

例1 SplFileInfo::getOwner() の例

<?php
$info 
= new SplFileInfo('file.txt');
print_r(posix_getpwuid($info->getOwner()));
?>

参考



add a note add a note User Contributed Notes
SplFileInfo::getOwner
There are no user contributed notes for this page.

SplFileInfo::getPath> <SplFileInfo::getMTime
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites