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

search for in the

DirectoryIterator::getPath> <DirectoryIterator::getMTime
[edit] Last updated: Fri, 17 May 2013

view this page in

DirectoryIterator::getOwner

(PHP 5)

DirectoryIterator::getOwnerObtiene el dueño del elemento actual DirectoryIterator

Descripción

public int DirectoryIterator::getOwner ( void )

Obtiene el dueño del elemento actual DirectoryIterator, en formato numérico.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

El dueño de el fichero, en formato numérico.

Ejemplos

Ejemplo #1 Ejemplo de DirectoryIterator::getOwner()

Este ejemplo mostrará el duseño de el directorio que contiene al script.

<?php
$iterator 
= new DirectoryIterator(dirname(__FILE__));
print_r(posix_getpwuid($iterator->getOwner()));
?>

El resultado del ejemplo sería algo similar a:

Array
(
    [name] => tom
    [passwd] => x
    [uid] => 501
    [gid] => 42
    [gecos] => Tom Cat
    [dir] => /home/tom
    [shell] => /bin/bash
)

Ver también



add a note add a note User Contributed Notes DirectoryIterator::getOwner - [0 notes]
There are no user contributed notes for this page.

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