Ask the moderator for help. what does this mean? 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 these mean ?? I often see it in php. I still don't quite understand it in the php Manual. Please advise. Thank you.
Reply to discussion (solution)
Http://www.php.net//manual/zh/function.header.php
Header ('www-Authenticate: Basic realm = "Realm-Name "');
? Use a sentence ?? Login ,?? Output 1? Box? Use ????? Password ?,? Entered ?? Hemi? Yes?
$ _ SERVER ['php _ AUTH_USER '];
$ _ SERVER ['php _ AUTH_PW '];
? ? OK?
Header ('status: 401 unauthorized ');
Header ('http/1.0 401 unauthorized ');
?? The sentence output status (401) is sent to the browser, which is mainly used for access permission control.
Header ("Location: http://www.example.com /");
? Face 302 redirection to http://www.example.com
Header ('www-Authenticate: negotiate ');
? Set one ?? Text
Header ('www-Authenticate: ntlm', false );
? Set one ?? Text information, because? After ?? Is false, no? ? Previous Negotiate, so ??? Text information? Coexistence
Header ('www-Authenticate: Basic realm = "Realm-Name "');
? Use a sentence ?? Login ,?? Output 1? Box? Use ????? Password ?,? Entered ?? Hemi? Yes?
$ _ SERVER ['php _ AUTH_USER '];
$ _ SERVER ['php _ AUTH_PW '];
? ? OK?
Header ('status: 401 unauthorized ');
Header ('http/1.0 401 unauthorized ');
?? The sentence output status (401) is sent to the browser, which is mainly used for access permission control.
Header ("Location: http://www.example.com /");
? Face 302 redirection to http://www.example.com
Header ('www-Authenticate: negotiate ');
? Set one ?? Text
Header ('www-Authenticate: ntlm', false );
? Set one ?? Text information, because? After ?? Is false, no? ? Previous Negotiate, so ??? Text information? Coexistence
Thanks to ing. This is much clearer,
Header ('www-Authenticate: negotiate ');
? Set one ?? Text
What is the purpose of this message?
This sentence is sent to the browser and can be obtained using js.
You can send a string to the browser. I have never used this.