in reply to Getting the UID of a file

$uid = (stat($filename))[4];