Hello,

I notice that when I select php object output, I only get a string, not a real php object, so I cannot access its atomic elements.

Any suggestions, why this is?

$data = whois_get_whois("www.hgf.com");

// these wont work!
print_r ($data->regrinfo->domain);
print('<br>');
print_r ($data["regrinfo"]["domain"]); 

Comments

giorgio79’s picture

to get back a real php array
in whois.module line 208
$data = $result;
replace

          $data .= $utils->showObject($result);

with

		  $data = $result;
helmo’s picture

Status: Active » Fixed

In the latest CVS version the code has been divided into separate functions, therefore whois_get_whois() now returns the result object.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.