tetsunosukeのnotebook

tetsunosukeのメモです

サンプル PEAR::Auth::Auth_Container_Arrayをためした。

<?php
require_once 'Auth/Auth.php';

$params = array(
              "cryptType" => "none",
              "users" => array(
                             'guest' => 'password'
                         )
          );


$a = new Auth("Array", $params);

$a->start();

if($a->getAuth()){
    echo "You have been authenticated successfully";
    
}

?>