|
-
Nov 22nd, 2002, 03:21 PM
#1
Thread Starter
Addicted Member
Login/Password System
I'm trying to make a website with some recorded conference calls that needs to be password protected.... (only pre-approved users can log in in order to hear the calls). I have no idea where to start except that PHP is probably what I need. I know zero about PHP or databases....
Does anyone know where there are tutorials on login systems or ones on PHP that would be useful, or where I could even possibly get a full working example?
Thanks....
- Allen
- Visual Basic 6.0
- Windows XP Home
-
Nov 22nd, 2002, 03:22 PM
#2
Stuck in the 80s
Why don't you just password with the .htaccess file?
-
Nov 22nd, 2002, 03:28 PM
#3
Thread Starter
Addicted Member
I can do that ? 
Sounds easier.... how do I do that ?
<feels [very] stupid for lack of knowledge>
- Visual Basic 6.0
- Windows XP Home
-
Nov 22nd, 2002, 03:57 PM
#4
Stuck in the 80s
Yes, you can. But I guess I should have mentioned it's an Apache thing. But if that's what your webserver uses, then you're good.
Give this a look: http://www.euronet.nl/~arnow/htpasswd/
It's an annoying looking webpage, but it basically generates the file you need to upload to the folder to password protect it.
It also has some documentation on how to use it: http://www.euronet.nl/~arnow/htpassw...mentation.html
Good luck.
-
Nov 22nd, 2002, 04:32 PM
#5
Thread Starter
Addicted Member
Thanks much for the links... I will try that out. Dunno what the server is running, but I guess I'll find out .
Thanks for your help !
- Allen
- Visual Basic 6.0
- Windows XP Home
-
Dec 1st, 2002, 10:20 PM
#6
Frenzied Member
In a .htaccess file add this:
Code:
# FULL System Path To Your .htpasswd File
AuthUserFile "E:/servers/root/vhosts/phpmyadmin/.htpasswd"
# We dont have a Group So Tell The Server That
# /dev/null = Not Exsistant
AuthGroupFile /dev/null
# Give it a name, This should do though
AuthName "Access Requires Name + Password"
# Leave This Line As Is
AuthType Basic
# Add Usernames Below
# No spaces In Names, 1 Space Between Each
require user UserName1 UserName2 UserName3
And now in a .htpasswd file add the following:
Code:
UserName1:Password1
UserName2:MySecondPassword
UserName3:ThirdPassword
UserName*Colon*Password
it is REALLY handy to keep the .htpasswd files out of the web directory, IE: if you have entire system access, make a new directory for .htpasswd files, and then stop any user going by adding in a .htaccess:
It should then work for you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|