php-windows Digest 15 Oct 2003 21:44:31 -0000 Issue 1957

Topics (messages 21782 through 21782):

PHP 4.3.3 and Apache 2.01 and $PHP_AUTH_USER
        21782 by: PHPFAN

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi, can any one help me? when i try this,

<?php
  if(!isset($PHP_AUTH_USER)) {
    Header("WWW-Authenticate: Basic realm=\"Mijn Realm\"");
    Header("HTTP/1.0 401 Unauthorized");
    echo "Nothing .\n";
    exit;
  } else {
    echo "Hallo $PHP_AUTH_USER.<P>";
    echo "Your PW is $PHP_AUTH_PW.<P>";
  }
?>It don't work. i only see "Nothing".Whats wrong??Greatings Edwin

--- End Message ---

Reply via email to