PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Reza Moghaddam   Simple PHP Domain Whois Class   sample.php   Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample File
Class: Simple PHP Domain Whois Class
Check if a given domain exists using whois
Author: By
Last change:
Date: 10 years ago
Size: 570 bytes
 

Contents

Class file image Download
<?php

/**
 * -------------------------------------
 * @Author Reza Moghaddam
 * @URL moghaddam24.ir
 * @Email r324.moghaddam@gmail.com
 * @Tel 09156990565
 * -------------------------------------
 */

include_once 'whois.class.php';


$whois = new Whois();
$whois->checkDomain("your-domain.com");

/*
if ( $whois->checkExist() ){
    echo $whois->checkExist();
}else{
    echo "Available For Register";
}
*/

if ( $whois->existOrNo() ){
    echo
"Dont Available";
}else{
    echo
"Available For Register";
}

?>