![]() | |||||||
A whois class (sort of) This isn't actually a whois class, it's a class that selects a whois server for a domain. If multiple whois servers are available, it chooses a random one. The script uses this XML file to get the servers (human-readable version here). As per their request, by default the class keeps a local cache of the XML file and updates once a day. To enable caching, make the directory the cache will be in writable. To disable caching change PHP Code: To PHP Code: Here is the class PHP Code: I wrote the whole class except the parsexml() function which I found on php.net. Do what you want with the code. Here are two examples: PHP Code: |
Very nice class Mikor, could come in very handy. I may have to use that in the Web 2.0 Whois checker i'm working on. (Don't worry, i'll credit you. :D) Can't rep you, apparently i'm too fond of you :o |
Providing http://serverlist.domaininformation.de/ is kept up to date that could come in very handy. 1 addition that might be useful however is to store the file locally and only retrieve it say once a day instead of every time the class is used. |
It does, have another look at the code. |
Next time I demand you forget that so I don't look silly when I make the suggestion :red: Ooh and read your pm. Sorry I forgot I will read the post in a minute and get back to you :). |
Forget what? My mind is suddenly blank :hehe: Good, and if you're likely to forget again, you may find it easier to remember if you open it in another tab - it's very difficult to forget things that are staring you in the face. |
| All times are GMT -7. The time now is 12:12 PM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0