I need a script that takes a domain name and retrieves whois data, such as the registrar name and expiry date. Does anyone know where I can find one?
There is a built in class. You can search on phpclasses.org. There are some classes you can choose some.
Thanks, I got it working but it only retrieves all the whois info in one big block of text - I need to retrieve individual values as variables, for example registrar name and expiry date - I need each to be a separate variable... any ideas how I can do that?
I believe each domain ext (com, net, etc) has its own whois result pattern, so you should check the output patterns for each extension. Thats my only idea.
Using regular expressions on this "block of text" you can filter text and output what you need, that's what he meant by parse the block.
Wouldn't that be difficult since the block of text is structured differently depending which extension you are checking? Perhaps someone would like to help me do this for a few dollars!