I looked into that function... it only gives the name of the owner of the current running script, not the user that PHP is running as. In most cases, on a production machine, the owner of the script would be the FTP user who uploaded the file, and the FTP user is seldom the same as the PHP user.