Header (' Www-authenticate:basic realm = ' realm-name ');
Header (' status:401 unauthorized ');
Header (' http/1.0 401 Unauthorized ');
Header ("location:http://www.example.com/");
Header (' www-authenticate:negotiate ');
Header (' WWW-AUTHENTICATE:NTLM ', false);
What do you mean by these few? Often see in PHP oh, I read in the PHP manual, still do not quite understand. Please advise. Thank you.
Reply to discussion (solution)
http://www.php.net//manual/zh/function.header.php
Header (' Www-authenticate:basic realm = ' realm-name ');
Sentence for?? Log in,?? Out a box? with????? The secret, the entry? And the secret can pass?
$_server[' Php_auth_user '];
$_server[' PHP_AUTH_PW '];
What is the right to take?
Header (' status:401 unauthorized ');
Header (' http/1.0 401 Unauthorized ');
?? The sentence output status value (401) to the browser, primarily for access rights control.
Header ("location:http://www.example.com/");
Face 302 Redirect to http://www.example.com
Header (' www-authenticate:negotiate ');
? Text information
Header (' WWW-AUTHENTICATE:NTLM ', false);
? The text information, because of?? is false, not negotiate before, so??? Text information? Coexistence
Header (' Www-authenticate:basic realm = ' realm-name ');
Sentence for?? Log in,?? Out a box? with????? The secret, the entry? And the secret can pass?
$_server[' Php_auth_user '];
$_server[' PHP_AUTH_PW '];
What is the right to take?
Header (' status:401 unauthorized ');
Header (' http/1.0 401 Unauthorized ');
?? The sentence output status value (401) to the browser, primarily for access rights control.
Header ("location:http://www.example.com/");
Face 302 Redirect to http://www.example.com
Header (' www-authenticate:negotiate ');
? Text information
Header (' WWW-AUTHENTICATE:NTLM ', false);
? The text information, because of?? is false, not negotiate before, so??? Text information? Coexistence
Thanks to ING, really useful. It's a lot clearer, but like this one.
Header (' www-authenticate:negotiate ');
? Text information
What is the use of this message?
This sentence is sent to the browser, with JS can be obtained.
You can pass a string to the browser. I didn't use that much either.