PHP Classes

File: usage.php

Recommend this page to a friend!
  Classes of Roy Inganta Ginting   IMAP Login   usage.php   Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: example of using class IMAP_Login
Class: IMAP Login
Authenticate users in a IMAP server
Author: By
Last change:
Date: 11 years ago
Size: 242 bytes
 

Contents

Class file image Download
<?php
include "IMAP_Login.php";

$if="if09062";
$password="mypassword";

$imap = new IMAP_Login("students.del.ac.id");

if (
$imap->is_login($if, $passwd)){
    echo
"Successfully login";
} else {
    echo
"You are not authorized";
}
?>