This function only works if the permissions are more less than 666
fileowner
(PHP 4, PHP 5)
fileowner — 파일의 소유자를 가져옵니다
Description
int fileowner
( string $filename
)
파일 소유자의 ID를 숫자형식으로 반환하거나 실패할 경우에는 FALSE를 반환합니다. ID를 사용자의 이름으로 바꾸기 위해서 posix_getpwuid()를 사용합니다.
이 함수의 실행결과는 캐시가 됩니다. 좀 더 자세한 내용을 알고 싶을 때는 clearstatcache()를 보십시오.
Note: 이 함수는 윈도우즈에서는 동작하지 않습니다.
fileowner
joacorck at gmail dot com
26-Feb-2007 05:20
26-Feb-2007 05:20
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 :(
