Home > categories > Security & Protection > Reflective Material > How do I restrict user access to a certain directory using php?
Question:

How do I restrict user access to a certain directory using php?

I'm new to Php and have built a login system using Php and Mysql. Everything works great, except users have access too ALL pages with a session_start. This could allow a user to directly type a URL and modify ANOTHER user's profile. Any suggestions?

Answer:

No, the thing is we cannot 'see' in infrared or ultraviolet so what we do is we interpret, we take a device that is sensitive to those wavelenghts and 'translate' that into the visible spectum. So what happens is that the devices transform values into colors (usually one). So if you have a monochromatic device (night vision goggles) the more infrared light an object emits or reflects the more 'intense' will be the color used to represent the wavelenght and so it would be rendered 'white'. You could however do a more thorough analysis and asign certain colors to certain wavelengths and make the more intese wavelengths 'look' brown (if you so choose) and so if an object reflects all radiation it would 'look' brown. Another way to look, no pun intended, at it is colorblindness. We are 'colorblind' to infrared it is not that a reflective material is white in infrared, it just reflects infrared wavelengths. All that is aside from the fact that there is no white color. White is (depending on who you arfe talking to) the sumation of several light colors or the absence of color, so white in itself does not exist.
If you signed a promissory note for $310 to be paid by 11-11-07, they cannot add a penalty a week later. It sounds as though they think they can milk you for additional money because you will be afraid to challenge them on this. People with no money are often eligible for free legal aid. Look in your local yellow pages or online for the Legal Aid Society in your area. They will give you a consultation for free.

Share to: