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

search for in the

SplFileInfo::getRealPath> <SplFileInfo::getPathname
Last updated: Fri, 13 Nov 2009

view this page in

SplFileInfo::getPerms

(PHP 5 >= 5.1.2)

SplFileInfo::getPermsファイルのパーミッションを取得する

説明

public int SplFileInfo::getPerms ( void )

ファイルのパーミッションを取得します。

パラメータ

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

返り値

ファイルのパーミッションを返します。

例1 SplFileInfo::getPerms() の例

<?php
$info 
= new SplFileInfo('/tmp');
echo 
substr(sprintf('%o'$info->getPerms()), -4);

$info = new SplFileInfo(__FILE__);
echo 
substr(sprintf('%o'$info->getPerms()), -4);
?>

上の例の出力は、 たとえば以下のようになります。

1777
0644



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

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