note 9338 added to header

From: Date: Sat, 28 Oct 2000 15:19:07 +0000
Subject: note 9338 added to header
Groups: php.notes 
Request: Send a blank email to php-notes+get-7126@lists.php.net to get a copy of this message
i cannot get the variable "php_auth_user". my php source as following: <? $error401 = "disp.php"; $ok1="put.htm"; Header("WWW-Authenticate: Basic realm=\"ÒøºÓͬÈÊÍø\""); Header("HTTP/1.0 401 Unauthorized"); if (empty($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"ÒøºÓͬÈÊÍø\""); Header("HTTP/1.0 401 Unauthorized"); include($error401); exit; } else { if($REMOTE_USER="axin" ) { echo 'welcome'; include($ok1); exit; } } but i cannot pass the certification. http://www.php.net/manual/function.header.php

« previous php.notes (#7126) next »