Re: unix permission converter

From: Date: Wed, 22 Aug 2001 01:26:16 +0000
Subject: Re: unix permission converter
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-63840@lists.php.net to get a copy of this message
Hi Richard, The system is not for any boxes use - it's for the user-access system I'm developing for my companie's Website. I copied the system they use at unix a little. We have READ and WRITE permissions and 4 different user-categories. 1,2,4,8 - the reason I'm splitting this up is actually quite simple, if I have a string like this "1-2-8" I can easier check if the user has the permission by checking whether "1" for example is inside the string. If I made the string look like this "128" it could easily be mistaken as a number... I was trying to figure out a shorter way of achieving the same thing, since splitting up those numbers gave me (and my maths teacher) quite a headache at first :)) do you have any ideas? TIA, Raphael

« previous php.general (#63840) next »