PHP Whois HowTo

This tutorial wants to explain how to program a Whois Search in PHP.
The Script will download a Whois Serverlist, build a database and interpret the result of a Whois Query.
The tutorial is divided in these three parts:

Downloading the Whois Serverlist via a HTTP GET Request

You learn how to handle with connections in PHP and get used to the Hypertext Transfer Protocol (HTTP).

Parsing a XML-File and create a database.

Learn how to parse a XML File by PHP and save the data structure in a relatinal database with mySQL.

Whois Search

Query the created database for a Whois Server, connect to this server and interpret its result.