Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
Thanks feyd, but that's not what I meant... I know what a bitwise comparison is - I've done it so many times in school when we were working with Assembler (we did it manually... e.g we use a pen and a sheet of paper to verify things ).
Oren wrote:I know some C, but very basic. Can you explain in words/pseudo code what these lines mean?
Judging by the code where S_IFMT used almost everywhere (presumably to cut off some unneeded bits from mode bitfield) they are just comparing mode bitfield to some predefined value. Basically it's just what astions has said.