Net_Whois

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
bokehman
Forum Regular
Posts: 509
Joined: Wed May 11, 2005 2:33 am
Location: Alicante (Spain)

Net_Whois

Post by bokehman »

I have just installed PEAR Net_Whois but cannot get it to run.

I am calling it like this:

require('Net/Whois.php');
print Net_Whois::query('whois.internic.net','bokehman.com');

but just get the following error message:

Fatal error: Using $this when not in object context in C:\AppServ5\php\PEAR\Net\Whois.php on line 131

This corresponds with this line in Whois.php:

$whoisData = $this->_connect($whoisServer, $domain);

Anyone got any ideas?
Post Reply