Php uses the baseHTTP verification method, phpbase. Php uses baseHTTP verification. phpbase describes how to use baseHTTP verification in php. Share it with you for your reference. The details are as follows: functionhttp_auth ($ un, php uses the base HTTP verification method, phpbase
This example describes how to use base HTTP verification in php. Share it with you for your reference. The details are as follows:
Function http_auth ($ un, $ pw, $ realm = "Secured Area") {if (! (Isset ($ _ SERVER ['php _ AUTH_USER ']) & isset ($ _ SERVER ['php _ AUTH_PW']) & $ _ SERVER ['php _ AUTH_USER '] =$ un & $ _ SERVER ['php _ AUTH_PW'] ==$ pw )) {header ('www-Authenticate: Basic realm = "$ realm" '); header ('status: 401 Unauthorized'); exit ();}}
I hope this article will help you with php programming.
Protocol HTTP verification method. phpbase describes how to use base HTTP verification in php. Share it with you for your reference. The details are as follows: function http_auth ($ un ,...