Tag: bitmask

  • Using bitmask permissions like Unix in PHP application

    Have you ever wanted to give read/write/Delete type of permissions to users or other items within a PHP application?  Why not use Unix-style file permissions (read/write/execute for example)?  A PHP implementation can be used for any kind of permissions in scripts and applications. Use powers of two (the reasoning behind this will become apparent when […]