PHP
  Home arrow PHP arrow Page 4 - Using PHP classes to navigate distributed whois databases
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Using PHP classes to navigate distributed whois databases
By: Mark Jeftovic
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 10
    1999-12-07


    Table of Contents:
  • Using PHP classes to navigate distributed whois databases
  • Overview of the whois landscape
  • Making sense of it with PHP classes
  • Overview of Whois2.php
  • Looking at the pieces
  • Tying it all together
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Using PHP classes to navigate distributed whois databases - Overview of Whois2.php
    ( Page 4 of 7 )


    This package is a lot different from it's precursor whois.php3, which was a single class that had to be tweaked and hacked everytime something changed. Whois2.php is designed in a way that if one registrar somewhere changes their output format (something NetSol does often enough), the entire class won't break.

    When all is said and done, we can use this class to do whois lookups for 121 TLDs, including the gTLD's .com/.net/.org/.edu/.int/.mil, the ccTLD's like .ca, .il, .at etc., Nominet's 2LD domains uk.com, gb.com and gb.net, and the ORSC (Open Root Server Consortium) alternate staging roots (.web, .info, .shop, etc).

    At the very least we can get back simple output from the whois server itself in raw, unparsed form. In better cases we have extended methods to further process the raw result into nice key/value pairs, and in the case of domains registered in .com/.net/.org we can seperate parsed results into both those of the registry server response and then the corresponding registrar's server output, provided we have the methods available to parse it.

    If the methods do not exist to further process data, the class returns what it has. If you want to create your own extended class to provide methods to parse the raw output of a given TLD, it's very simple to add it to the mix.

     
     
    >>> More PHP Articles          >>> More By Mark Jeftovic
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    Stay green...Green IT