Dear friends
I need a login script that allow only one user to login using one user name. Multiple users canot login using same user name.
contact me iplt20@live.com live msn talk.
Dear friends
I need a login script that allow only one user to login using one user name. Multiple users canot login using same user name.
contact me iplt20@live.com live msn talk.
I've added you. Add me to your list so we can talk.
Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية
I may be missing something here, but why not just create an .htaccess file and don't give anyone else the password?
How is that done please as I may like to use that myself.
=====
create an .htaccess file and don't give anyone else the password
Last edited by harryknight; 07-18-2008 at 08:25 AM. Reason: missed out
How is that done please as I may like to use that myself.
===create an .ht access file which is passworded
Use a text editor such as Notepad to create a text file with something like the following in it:
Replace the /home/username/etc/ with the path to somewhere safe on your site. Save it as htaccess.txt. FTP it to the folder you want password protected. Rename it to .htaccess.Code:AuthUserFile /home/username/etc/.htpasswd AuthType Basic AuthName "This Section is Password Protected" Require valid-user
Use your text editor to create the .htpasswd file to hold the username(s) and password(s). Dynamic Drive has a good password generator here:
http://tools.dynamicdrive.com/password/
The file will look something like this:
Save the file as htpasswd.txt, FTP it to the path in line 1 of the htaccess file, then rename it to .htpasswd just as before.Code:username:87PQ/tX0PsWW6
Go to the page in your browser and it will now ask you for your username and password.
Voila!![]()
Last edited by kuau; 07-18-2008 at 08:46 AM. Reason: clarification
Bookmarks