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

search for in the

fileperms> <filemtime
Last updated: Sun, 25 Nov 2007

view this page in

fileowner

(PHP 4, PHP 5)

fileowner — Zistí vlastníka súboru

Popis

int fileowner ( string $názovsúboru )

Vráti užívateľské ID vlastníka súboru alebo FALSE v prípade chyby Užívateľské ID je vrátené v číselnom formáte. Ak chcete zistiť k tomuto číslu prislúchajúceho užívateľa, použite funkciu posix_getpwuid().

Výsledky tejto funkcie sú cacheované. Bližšie informácie môžete nájsť pri funkcii clearstatcache().

Táto funkcia nepracuje so vzdialenými súbormi; súbor, ktorý má byť preskúmaný, musí byť prístupný cez súborový systém servera.



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