Re: [PHP] authentication problem

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 8:50 am, Yavuz S. Atmaca said: > $sql = "SELECT user_id > FROM tbl_auth_user > WHERE user_id = '$userId' AND > user_password = PASSWORD('$password')"; Did you use the PASSWORD function when you inserted your passwords, or are they just plain-text?

[PHP] authentication problem

2005-04-29 Thread Yavuz S. Atmaca
Hi all I'm trying to do authentication with database. I created the database and I inserted some usernames and passwords into my database. By using the below file, I'm trying to give access to the main page for the accounts that matches the username and password. The problem is that "it do not reco

Re: [PHP] authentication problem...

2004-12-30 Thread Christophe Chisogne
Ali a écrit : if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) { Better use $_SERVER['PHP_AUTH_USER'] instead of $PHP_AUTH_USER and $_SERVER['PHP_AUTH_PW'] instead of $PHP_AUTH_PW. Chapter 33. HTTP authentication with PH

[PHP] authentication problem...

2004-12-30 Thread Ali
Hi there this is a tutorial am trying to do...chk out the code.. if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) { header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized'

RE: [PHP] authentication problem

2003-02-28 Thread Daniel Masson
:44 Para: [EMAIL PROTECTED] Asunto: [PHP] authentication problem Hi again, My problem was about authentication without the default popup, but with a form that submits the credentials. I still didn't get it to work, so I'd like to know if anyone has ever done anything like that. I just ca

[PHP] authentication problem

2003-02-28 Thread Oliver Witt
Hi again, My problem was about authentication without the default popup, but with a form that submits the credentials. I still didn't get it to work, so I'd like to know if anyone has ever done anything like that. I just can't get it to work right and I'd like to see a working script thx, Olive

[PHP] Authentication problem with IE on Win2k

2001-12-21 Thread Martin Schichl
I've installed authenification by $PHP_AUTH_USER and $PHP_AUTH_PW which works fine with my browser (IE & NS) on a win98 box. It keeps the login even if I switch to another protected page (same user, same pw) On a Win2k Machine the authentication works fine on the first page, but when I s