Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 7th Jun 2015, 03:30 AM   #1
Active Warrior
 
Join Date: 2011
Posts: 44
Thanks: 3
Thanked 1 Time in 1 Post
Default
Create subdomain using php in goddady cpanel
Share on: 
fb share twitter share gplus share more share

I am trying to make subdomain using this code.
https://github.com/CpanelInc/xmlapi-php

require_once('xmlapi.php.inc');
$xmlapi = new xmlapi('127.0.0.1');
$xmlapi->password_auth('root','password');
$xmlapi->set_debug(1); $xmlapi->api1_query('accountname','SubDomain','addsubdomai n',array('sub','domain.com',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

Code:
Fatal error: Uncaught exception 'Exception' with message 'curl_exec   threw error "Failed to connect to example.com port 2083

lovefax89 is offline  
Unread 8th Jun 2015, 11:39 PM   #2
Active Warrior
 
Daniel Santos's Avatar
 
Join Date: 2011
Location: Neither here nor there
Posts: 58
Thanks: 3
Thanked 13 Times in 10 Posts
Default
Re: Create subdomain using php in goddady cpanel
Share on: 
fb share twitter share gplus share more share

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.
Daniel Santos is offline  
Closed Thread


Bookmarks

Tags
cpanel, create, goddady, php, subdomain


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 07:50 PM.