Received: from 211.39.138.71 (211.39.138.71) 
	at KTMAIL with ESMTP Hanmir
	by hanmir.com;Wed, 04 Feb 2004 20:03:51 +0900
X-MsgID: 1075892631451369615.33.hanmir
Message-ID: <1075892631451369615.33.hanmir@hanmir.com>
X-RECEIVED-IP: 216.92.131.4
Received: (qmail 77023 invoked by uid 1010); 4 Feb 2004 10:41:22 -0000
Mailing-List: contact php-general-help@lists.php.net; run by ezmlm
Precedence: bulk
list-help: <mailto:php-general-help@lists.php.net>
list-unsubscribe: <mailto:php-general-unsubscribe@lists.php.net>
list-post: <mailto:php-general@lists.php.net>
Delivered-To: mailing list php-general@lists.php.net
Received: (qmail 77010 invoked by uid 1010); 4 Feb 2004 10:41:22 -0000
Delivered-To: ezmlm-scan-php-general@lists.php.net
Delivered-To: ezmlm-php-general@lists.php.net
Reply-To: <php-general@lists.php.net>
From: "Burhan Khalid" <phplist@meidomus.com>
To: <jt.johnston@USherbrooke.ca>,
	<php-general@lists.php.net>
Date: Wed, 4 Feb 2004 13:41:20 +0300
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
In-Reply-To: <40207E42.2EFFE38@collegesherbrooke.qc.ca>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Thread-Index: AcPq3FZqRskOPmqhRZaSmgSqXIdUJwALwq8w
Y-Message-Id: <E1AoKT9-0001iL-Gn@dell.kuwaitnet.net>
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - dell.kuwaitnet.net
X-AntiAbuse: Original Domain - lists.php.net
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - meidomus.com
Subject: RE: [PHP] Re: authentication comparing to /etc/passwd

John Taylor-Johnston wrote:
> if($PHP_AUTH_USER != "user1") || ($PHP_AUTH_PW != "password")
> 
> ... or somehting like that. I can't find it in the manual, but it is
> there someplace. 
> 
> Adam Williams wrote:
> 
>> Hi, is there a PHP function or some sort of way to have a user enter
>> their username and password in a form, and compare the username and
>> password and see if the username exists and the password is correct?
>> 
>> basically I want to have a page where a person enters their username
>> and password and if correct to use the header function to send them
>> to the a page.

http://www.zend.com/zend/tut/authentication.php


-- 
Burhan Khalid
phplist[at]meidomus[dot]com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

