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?
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
Is it the Win IIS authentication system ??? or apache .htaccess
Daniel E Massón.
Ingeniero de desarrollo
[EMAIL PROTECTED]
Imagine S.A.
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia
__
3 matches
Mail list logo