-
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
-
Why don't you just password with the .htaccess file?
-
I can do that ? :eek: :D
Sounds easier.... how do I do that ?
<feels [very] stupid for lack of knowledge>
-
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. :)
-
Thanks much for the links... I will try that out. Dunno what the server is running, but I guess I'll find out :p.
Thanks for your help !
- Allen
-
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