brooks_hunt

Member
Jan 14, 2014
8
0
1
cPanel Access Level
Root Administrator
I'm trying to only display the domains for parked domains. But I don't return anything. Can anyone help?

PHP:
include("xmlapi.php");
$xmlapi = new xmlapi($server_ip);
$xmlapi->hash_auth($whm_user,$whm_hash);
$xmlapi->return_xml(1);
$xmlapi->set_output("xml");
$data = $xmlapi->api2_query($cp_user, "Park", "listparkeddomains" );
$xml_object = simplexml_load_string($data);
foreach($xml_object->cpanelresult->data as $key => $value)
{
echo $value->domain;
}
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
I am happy to see you were able to find a solution. Thank you for updating the thread with the outcome.