Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of dileep awasthi  >  Domain and Email Validator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: This is example that how toy use class
Class: Domain and Email Validator
Validate e-mail addresses checking its domain
Author: By
Last change:
Date: 2012-11-10 14:09
Size: 430 bytes
 

Contents

Class file image Download
<?php
/*Here is example that how can you use the class*/
include "validmail.php";
$test = new EmailValdation;
$test->email 'dileep.awasthi@gmail.com';
if(
$test->checkEmailDomain() == 0) { //Check DNS of Email Address
    
echo 'Invalid Domain <br />';
} else {
    echo 
'Valid Domain <br />';
}
$mydomain 'logicsart.com';
echo 
'IP Address of <b>'.$mydomain.'</b> is: '.$test->ipAddress($mydomain); //Check IP address

?>