Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Create subdomain using php in goddady cpanel (https://www.warriorforum.com/programming/1081239-create-subdomain-using-php-goddady-cpanel.html)

lovefax89 7th June 2015 03:30 AM

Create subdomain using php in goddady cpanel
 
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

Daniel Santos 8th June 2015 11:39 PM

Re: Create subdomain using php in goddady cpanel
 
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.


All times are GMT -6. The time now is 11:41 PM.