PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Zsolt Munoz   httpAuth   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Text File Example
Class: httpAuth
Authenticate users in several ways
Author: By
Last change: Added the require("auth.httpAuth.php")
Date: 16 years ago
Size: 223 bytes
 

Contents

Class file image Download
<?
   
require("auth.httpAuth.php");
   
$test = new httpAuth($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],"text","./password.csv");
    if(
$test->login() == true) {
        echo
"Success!";
    } else {
        echo
"Failure!";
    }
?>