RobBroekhuis
Technical User
Getting my feet wet, trying to use PEAR (specifically, the Net/Whois module). But things aren't working, and I don't understand things well enough from the pear.php.net documentation - perhaps one of you can set me straight.
I'm on a hosted web server, which has some pear features installed ("which pear" finds a copy in /usr/local/bin/pear, and the include path leads to a directory with PEAR.php). I can't seem to get the pear package manager to do anything useful (whatever I try, it just tells me "No such file or directory"). So I downloaded the Whois.php directly to a local directory, and did a require_once("Whois.php)" in my script. The script runs, and gets past the require("PEAR.php") in the Whois.php include, but fails shortly thereafter, on the line
$whoisServer = $this->_chooseServer($domain);M
with the error:
Fatal error: Call to a member function on a non-object in Whois.php
What am I missing? Could the server version of PEAR.php be too old? (File date is Oct 30, 2002)
Thanks for your help
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
I'm on a hosted web server, which has some pear features installed ("which pear" finds a copy in /usr/local/bin/pear, and the include path leads to a directory with PEAR.php). I can't seem to get the pear package manager to do anything useful (whatever I try, it just tells me "No such file or directory"). So I downloaded the Whois.php directly to a local directory, and did a require_once("Whois.php)" in my script. The script runs, and gets past the require("PEAR.php") in the Whois.php include, but fails shortly thereafter, on the line
$whoisServer = $this->_chooseServer($domain);M
with the error:
Fatal error: Call to a member function on a non-object in Whois.php
What am I missing? Could the server version of PEAR.php be too old? (File date is Oct 30, 2002)
Thanks for your help
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)