Create subdomain using php in goddady cpanel

1 replies
I am trying to make subdomain using this code.

$xmlapi = new xmlapi('');
$xmlapi->set_debug(1); $xmlapi->api1_query('accountname','SubDomain','addsubdomai n',array('sub','',0,0,'/public_html/folder'));

It's working when i run this code using local-host(PC) but it's not working for live server (godadday hosting).

I am getting this error

Fatal error: Uncaught exception 'Exception' with message 'curl_exec   threw error "Failed to connect to port 2083
#cpanel #create #goddady #php #subdomain
  • Profile picture of the author Daniel Santos
    Port blocking perhaps? I'd give the hosting company a call just to make sure it's not a firewall on the server or something.
    {{ DiscussionBoard.errors[10105132].message }}

Trending Topics