Answer the question
In order to leave comments, you need to log in
Who is the owner of the file, and how is the uid determined?
Created a test file on the server and displayed its data on the screen
$stat = stat($path);
print_r(posix_getpwuid($stat['uid']));
Array ( [name] => r33333 [passwd] => x [uid] => 1717 [gid] => 1715 [gecos] => [dir] => /home/r33333 [shell] => /usr/local/cpanel/bin/noshell )
Answer the question
In order to leave comments, you need to log in
name The name element contains the user's name. This is a short, usually less than 16 character "handle" for the user, and is not the actual full name of the user. id Numeric user ID, must match the uid parameter passed when calling the function. Is redundant. guide The user's group ID. Use the posix_getgrgid() function to get the name of a group and a list of its member users.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question