HTTP protocol

xiaoxiao2021-03-06  56

A small program, don't know why not good! Is there any setting?

IF (! isset ($ PHP_AUTH_USER))

{

Header ("WWW-Authenticate: Basic Realm = /" My Realm / "");

Header ("http / 1.0 401 unauthorized);

Echo "Text to send if User Hits CANCLE Button / N";

EXIT;

}

Else

{

Echo "Hello $ PHP_AUTH_USER.

";

Echo "You Entered $ PHP_AUTH_PW As Your Password.

";

}

?>

转载请注明原文地址:https://www.9cbs.com/read-113336.html

New Post(0)