Using PHP for HTTP authentication sometimes requires some people to access (know the user name and password) before the project goes online ).? Note: in the php document, PHP_AUTH_USER and PHP_AUTH_PW indicate that when PHP runs in the Apache or IIS (PHP5 is an ISAPI) module, therefore, this method only applies to the apache module running mode (not verified) for php ).?? & Lt ;? Php uses PHP for HTTP authentication
Sometimes some people can access the project (know the user name and password) before going online ).
?
Note: in the php document'PHP_AUTH_USER','PHP_AUTH_PW'The note is that when PHP runs in the Apache or IIS (PHP 5 is an ISAPI) module mode, this method applies only to the apache module running mode (not verified) of php ).
?
?
Wrong UserName or Password!";exit; }}authenticate("admin", "admin");
?
MORE: http://www.php.net/manual/en/features.http-auth.php
?
?