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

search for in the

fileperms> <filemtime
Last updated: Fri, 04 Jul 2008

view this page in

fileowner

(PHP 4, PHP 5)

fileowner — Obtiene el dueño del archivo

Descripción

int fileowner ( string $nombre_archivo )

Obtiene el dueño del archivo.

Lista de parámetros

nombre_archivo

Ruta al archivo.

Valores retornados

Devuelve el ID de usuario del dueño del archivo, o FALSE en caso de fallo. El ID de usuario es devuelto en formato numérico, uso posix_getpwuid() para convertirlo en un nombre de usuario.

Notes

Note: Los resultados de esta función son guardados. Consultar clearstatcache() para más detalles.

Tip

A partir de PHP 5.0.0, esta funcion tambien puede usarse con algunas URL como nombre de fichero. Consultar Lista de Protocolos/Envolturas Soportadas, para obtener una lista con soporte para la funcionalidad stat().

Ver también



add a note add a note User Contributed Notes
fileowner
joacorck at gmail dot com
26-Feb-2007 02:20
This function only works if the permissions are more less than 666
29-Jan-2006 01: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> <filemtime
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites