With AUTH_HTTP, you can easily build HTTP-based verification programs and specify user data tables as needed, which is easy to use...
Example:
<? Php
Require_once ("Auth/HTTP. php ");
$ Options = array (
Dsn => "mysql: // root: @ localhost/test", // database connection string
Table => "test_http", // User table
Usernamecol => "name", // username field
Passwordcol => "passwd", // User Password Field
CryptType => "md5", // password and password method
Db_fields => "*",
);
$ A = new Auth_HTTP ("DB", $ options );
$ A-> setRealm (yourrealm); // realm name
$ A-> setCancelText (Error 401); // message displayed when verification fails.
$ A-> start (); // starting the authentication process
If ($ a-> getAuth () // success
{
Echo "Hello $ a-> username welcome to my secret page ";
Echo $ a-> getAuthData (userid); // obtain other fields
Echo $ a-> getAuthData (telephone );//
Echo $ a-> getAuthData (email );
// Print_r ($ );
};
?>
Add this program before the program to be verified ..