LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   how i add user name and pass to enter my site (https://www.linuxquestions.org/questions/fedora-35/how-i-add-user-name-and-pass-to-enter-my-site-527498/)

lion_heart_300 02-11-2007 02:51 AM

how i add user name and pass to enter my site
 
hello
im in local network
how i add user name and pass to enter my site
as
when user wnat to enter my site the site ask user name and pass to enter
thanks

acid_kewpie 02-11-2007 03:42 AM

does "site" mean website? if so, you're best starting with an .htaccess file containing the username and password.

tbutttbutt 02-11-2007 03:45 AM

You can do HTTP Authentication using PHP, using the header()function in PHP. If you like I can send you an example script. Check the PHP manual.

There must be a way to do it in HTML too.

lion_heart_300 02-11-2007 06:25 PM

Quote:

Originally Posted by acid_kewpie
does "site" mean website? if so, you're best starting with an .htaccess file containing the username and password.

acid yes website using apache web server
ok how i do this file that is i wanted
thanks all

lion_heart_300 02-11-2007 08:28 PM

thanks all
i resolve this problem


All times are GMT -5. The time now is 12:44 PM.