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
[PHP] [ERR] RE: [PHP] Re: authentication comparing to /etc/passwd
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- 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 ---End Message---
[PHP] Re: authentication comparing to /etc/passwd
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. -- John Taylor-Johnston - If it's not Open Source, it's Murphy's Law or broken. ' ' ' Collège de Sherbrooke ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke http://compcanlit.ca/ 819-569-2064 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: authentication comparing to /etc/passwd
Found this too: ? if(!isset($PHP_AUTH_USER)) { Header(WWW-authenticate: basic realm=\$SID\); Header(HTTP/1.0 401 Unauthorized); $title=Login Instructions; echo blockquote You are not authorised to enter the site /blockquote \n; exit; } else { if (!($conn=ora_logon([EMAIL PROTECTED],$PHP_AUTH_PW))) { Header(WWW-authenticate: basic realm=\$SID\); Header(HTTP/1.0 401 Unauthorized); $title=Login Instructions; echo blockquote You are not authorised to enter the site /blockquote \n; exit; } } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php