Login   Register  
PHP Classes
elePHPant
Icontem

File: exampleScript.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2009-01-26 04:21
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();
?>