I am using the PHP API from eNom.com to list available TLDs
I have this code:
$url = 'http://ift.tt/1ArJJ5n;
uid='.$enomResellerid.'&pw='.$enomPassword.'&responsetype=xml';
$xml = simplexml_load_file($url);
then i tried adding:
$TLDList = $xml->TLD;
switch ($TLDList) {
case 210:
echo "Domain available";
break;
case 211:
echo "Domain not available";
break;
default:
echo $TLDList;
break;
}
To show the list but nothing is being displayed.
I followed their API Docs here http://ift.tt/1Btr8eK on the GetTLDList Documentation but nothing is showing
Is there anything obvious that I am doing wrong?
I have contacted support but i am still waiting for a response at the moment
No comments:
Post a Comment