PHP Classes

File: exampleScript.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan   Mail Server Info   exampleScript.php   Download  
File: exampleScript.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Mail Server Info
Lookup DNS to obtain the SMTP servers of a domain
Author: By
Last change: Upgraded the code to PHP5
Date: 15 years ago
Size: 398 bytes
 

Contents

Class file image Download
<?php
require('MailServerInfo.inc.php');
$domain="google.com";
if(isset(
$_GET['domain'])) {
   
$domain=trim(strtolower($_GET['domain']));
}
$mx = new mailServerInfo;
$mx->mxlookup($domain);
echo
"<font color='green' size='3' face='verdana'><B>".$mx->getTotalAccounts()." Account</b>(<B>s</B>)<B> returned from : ".$mx->getDnsReplDomain . "</b></font><BR>";
$mx->displayFormatedResults();
?>