Net_Whois
Posted: Thu Jun 30, 2005 3:30 pm
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?
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?