Login   Register  
PHP Classes
elePHPant
Icontem

File: usage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2 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";
}
?>