solved
 
 
sambar standad
 
$_SERVER['AUTH_USER']
$_SERVER['AUTH_PASSWORD']
 
 
PHP standad
 
$_SERVER['PHP_AUTH_PW']
$_SERVER['PHP_AUTH_USER']
 
sorry I cant understand this!!
 
----- Original Message -----
From: ricardo
Sent: Monday, June 18, 2001 9:09 PM
Subject: [sambar] is solved a php auth header?

 
 
this dont work!
 
 
<?php
  if (!isset($_SERVER['PHP_AUTH_USER'])) {
    header('WWW-Authenticate: Basic realm="My Realm"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Text to send if user hits Cancel button';
    exit;
  } else {
    echo "<p>Hello {$_SERVER['PHP_AUTH_USER']}.</p>";
    echo "<p>You entered {$_SERVER['PHP_AUTH_PW']} as your password.</p>";
  }
?>

-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/


-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/


Reply via email to