PHP Classes

File: example.php

Recommend this page to a friend!
  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: 10 years ago
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

?>