Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-29 Thread Richard Lynch
On Thu, October 27, 2005 11:05 am, Dan Trainor wrote: > It's been suggested to use readfile() to accomplish this, by > forwarding > content from outside of the document root - but this just sounds odd. > On top of being (what I think would be) incredibly slow, it just > doesn't > sound "right". A)

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-28 Thread Richard Heyes
Dan Trainor wrote: Hello, all - I'm designing a controlled access system in PHP, and it's coming along quite well. It's very simple, and just sets a session varibale, such as $_SESSION['authenticated'] = 1, not a whole lot. If you do this this, you must make sure you have some sort of session

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-27 Thread Dan Trainor
Jason Motes wrote: >> >> I'm designing a controlled access system in PHP, and it's coming along >> quite well. It's very simple, and just sets a session varibale, such as >> $_SESSION['authenticated'] = 1, not a whole lot. >> >> Now I run a small sniplet of code on the top of each HTML and PHP fil

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-27 Thread Jason Motes
I'm designing a controlled access system in PHP, and it's coming along quite well. It's very simple, and just sets a session varibale, such as $_SESSION['authenticated'] = 1, not a whole lot. Now I run a small sniplet of code on the top of each HTML and PHP file, which checks for this variable,