Skip to main content

A Role-Based Access Control (RBAC) system for PHP

Anyone, that has searched the web for anything related to PHP, sooner or later must have come across the web site of Tony Marston. It is very rich source of ideas and information, and it is worth visiting any time you have a moment to spear. One of the topics that web developers tackle often is the issue of providing accurate and flexible access to the web site users. One way to do this is by using RBAC or Role-Based Access Control system. This system is most ofter implemented with a database, but this is not a requirement. Recently I looked again at one of Tony MarstonĂ¢€™s articles about RBAC implementation for PHP and I thought, I share the link with you. I hope it will help or inspire somebody. Enjoy!


Popular posts from this blog

Enable pgpass under Windows 7

Last year I have written a post about enabling pgpass under Windows XP . Today I repeated the procedure for Windows 7. Basically everything worked as before, with the following exception - the APPDATA directory in Win 7 is different. What I did first was to check the name of the user running PostgreSQL server process. Then log in as that user and find out where is the APPDATA directory for that user. echo %APPDATA% From that point on, just follow the instructions in the previous post. Good luck!

PHPUnit 4 on Windows 7

Download phpunit.phar from - Find your php bin directory. In my case it is: C:\Program Files (x86)\Zend\ZendServer\bin Add this directory to your path. In the same php bin directory create .bat file with the following content: @ECHO OFF set PHP_BIN=php.exe set FILE_PATH="C:\path\to\phpunit_phar_file\phpunit.phar" %PHP_BIN% %FILE_PATH% %* Done. phpunit will be available from any location.