¡@

Home 

php Programming Glossary: user_permissions

Bitmask in PHP for settings?

http://stackoverflow.com/questions/5319475/bitmask-in-php-for-settings

perms toBitmask in this example it is 15 sql insert into user_permissions userid permission values 1 bitmask echo sql you would then execute..

Improve this PHP Bitfield Class for settings/permissions?

http://stackoverflow.com/questions/5380506/improve-this-php-bitfield-class-for-settings-permissions

function clear n this set n false Example Usage... php user_permissions 0 This value will come from MySQL or Sessions bf new BitField.. value will come from MySQL or Sessions bf new BitField user_permissions turn these permission to on true bf set bf PERM_READ bf set.. sets bf PERM_ADMIN2 bit to false get the total bit value user_permissions bf getValue echo ' br Bitmask value ' . user_permissions. '..