from Wikipedia entry for stat function (in c):
The st_mode field is a bit field. It combines the file access modes and also indicates any special file type.
I believe that the entry for stat in php manual references this.
How would you interpret this to determine the files access perms?
(for the sake of custom error handling or whatever)