PHP 4.3.3 and Apache 2.01 and $PHP_AUTH_USER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux