How to define a owner, group and others through PHP?

Posted by Starx on Stack Overflow See other posts from Stack Overflow or by Starx
Published on 2010-05-21T06:07:25Z Indexed on 2010/05/21 6:10 UTC
Read the original article Hit count: 235

Filed under:
|

Whenever we use chmod, we set different authorities to different users types like

owner, group, others, all

What I dont know is, how do define who is owner, who is group and who are others.

Can we use this while implementing login system? What I mean is, by verifying a username, I want to define if the logged in user is owner, a group or others so that I can deny access to file or folder.

May be my title does not reflect the question, if someone with rep power finds a better title, please edit it?

© Stack Overflow or respective owner

Related posts about php

Related posts about permissions