LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 02-11-2007, 03:51 AM   #1
lion_heart_300
Member
 
Registered: Sep 2005
Posts: 130

Rep: Reputation: 15
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
 
Old 02-11-2007, 04:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
does "site" mean website? if so, you're best starting with an .htaccess file containing the username and password.
 
Old 02-11-2007, 04:45 AM   #3
tbutttbutt
Member
 
Registered: Jan 2006
Location: India
Distribution: Fedora 7, Linuxfromscratch 6.2
Posts: 66

Rep: Reputation: 15
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.
 
Old 02-11-2007, 07:25 PM   #4
lion_heart_300
Member
 
Registered: Sep 2005
Posts: 130

Original Poster
Rep: Reputation: 15
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

Last edited by lion_heart_300; 02-11-2007 at 08:54 PM.
 
Old 02-11-2007, 09:28 PM   #5
lion_heart_300
Member
 
Registered: Sep 2005
Posts: 130

Original Poster
Rep: Reputation: 15
thanks all
i resolve this problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
11 crashed, rebooted then no keyboard to enter root pass Old_Fogie Slackware 4 10-06-2006 04:49 AM
Firewall asking user name and pass wincrk Linux - Networking 3 04-24-2006 12:53 AM
default user/pass linuxman356 Suse/Novell 2 07-23-2005 12:51 AM
Samba keeps asking for user/pass LinuxBlackBox Linux - Networking 2 09-11-2004 04:16 PM
Can you su and enter pass in same command Onemessedupjedi Slackware 3 11-19-2003 10:48 PM


All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration