Tue Oct 28, 2008 2:06 pm
<html>
<head>
<title> hostname validator </title>
</head>
<body>
<?php
$hostname = "www.codemiles.com";
if (!isset($hostname)) {
die("Hostname value wasn't properly submitted. Retry.");
}
if(empty($hostname)){
die("Hostname field was left blank ! Retry.");
}
echo "<b>". $hostname ."</b> ";
if(checkdnsrr($hostname)) {
echo "has a valid MX record !<br>";
}else{
die("does not exist");
}
?>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.