Hi All,
I am using the following code:
The problem is that my subdomain isn't created. In fact, when I run any of the examples, they don't work either. I do get an error when I don't enter auth details so it is speaking to the class OK, just doesn't see to work with the API.PHP Code:$account = "accountUserNameForCPanel";
$xmlapi = new xmlapi('IpToDomain');
$xmlapi->password_auth('myrootuser', 'myrootpass');
$xmlapi->set_debug(1);
print $xmlapi->api1_query($account, 'SubDomain', 'addsubdomain', array('subdomain', 'mydomain.com', 0, 0, '/public_html/'));
Any ideas?



LinkBack URL
About LinkBacks
Reply With Quote





