Torsten Rosenberger wrote:

> Hello

>       I have some trouble with user permission.
> I build the system like the permission in the phplib.

> admin       = 1
> news        = 2
> news_create = 4
> news_delete = 8
> ..
> ..
> ..

> then ich can check ($user_perm & $perm == $perm )

> But the problem ist that the permissions now over BIGINT.
> So i cann't store it in mysql (possible are varchar)
> But to compare the perms they must have the type integer
> settype ($perm,interger) brings a wrong value  in case that the number
> is greater as the BIGINT.

> Someone have a better solution ? or a way out.

> BR/Torsten Rosenberger

Cut down you number of usergroups ;)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to