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
[edit] Last updated: Fri, 25 May 2012

view this page in

SplFileInfo::getOwner

(PHP 5 >= 5.1.2)

SplFileInfo::getOwnerLit le propriétaire du fichier

Description

public int SplFileInfo::getOwner ( void )

Lit le propriétaire du fichier. Le propriétaire est un entier.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Le propriétaire du fichier, au format entier.

Erreurs / Exceptions

Émet une exception RunTimeException en cas d'erreur.

Exemples

Exemple #1 Exemple avec SplFileInfo::getOwner()

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

Voir aussi



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

 
show source | credits | sitemap | contact | advertising | mirror sites