Re: [PHP] restricting access to files using PHP

2003-02-13 Thread David T-G
Shams -- ...and then Shams said... % ... % I'm interested in your solution David, what is the format of the external % auth script that you use.. is there some kind of return you have to give % .htaccess ? Yep. It's just a simple perl script; it's attached for reference. % % Also, is there n

Re: [PHP] restricting access to files using PHP

2003-02-13 Thread Justin French
on 13/02/03 9:19 PM, Shams ([EMAIL PROTECTED]) wrote: > Also, is there no way I can allow a user to login using a PHP login script, > and then pass the "username" and "password" over to .htaccess to verify ? Just use .htaccess for the whole lot Justin -- PHP General Mailing List (http://www.p

Re: [PHP] restricting access to files using PHP

2003-02-13 Thread Shams
Ooops, I didn't mean to post my question a number of times! Just that my message didn't appear (in Outlook Express), so I reposted it. Thanks to everyone who replied. I'd rather not convert .HTML files to .PHP files because there are other files in the members area that I also wish to protect (

Re: [PHP] restricting access to files using PHP

2003-02-12 Thread Ernest E Vogelsinger
At 10:46 12.02.2003, Shams said: [snip] >i've written a secure PHP login script which will allow users to login to a >directory such as this: > >smezone.com/members/index.php > >however, how do I restrict people from accessing HTML files in that >directory (w

Re: [PHP] restricting access to files using PHP

2003-02-12 Thread David T-G
Shams -- ...and then Shams said... % % Hi, Hi! % ... % however, how do I restrict people from accessing HTML files in that You've seen the suggestions from others to change your .html files. You may or may not want to do that. If you don't want to do that, then you need a .htaccess file.

Re: [PHP] restricting access to files using PHP

2003-02-12 Thread Justin French
Assuming Apache: 1. use index.php or login.php as a log-in file, just as you are 2. if you have your heart set on naming the files .html instead of .php, then create a .htaccess file in the dir which forces .html files thru php for that directory 3. create a php file called "access_control.php"

RE: [PHP] restricting access to files using PHP

2003-02-12 Thread David Freeman
> i've written a secure PHP login script which will allow > users to login to a > directory such as this: > > smezone.com/members/index.php > > however, how do I restrict people from accessing HTML files in that > directory (which they can easily do so by typing the URL into their > brows

Re: [PHP] restricting access to files using PHP

2003-02-12 Thread Jason Wong
On Wednesday 12 February 2003 17:46, Shams wrote: > Hi, > > i've written a secure PHP login script which will allow users to login to a > directory such as this: > > smezone.com/members/index.php > > however, how do I restrict people from accessing HTML files in that > directory (which they can eas