Subdomain creation using php

3 replies
Hello, this is what i want.

I have two domains in godadday hosting
www.firstdomain.com
www.seconddomain.com

I have this code running in www.firstdomain.com but i wanna create sub-domain for www.seconddomain.com using following code.

PHP Code:
 '12345';
 = 
'12345';
 = new 
xmlapi('seconddomain.com');
2083 );
(,);
(
1); //output actions in the error log 1 for true and 0 false 
 
= (, 'SubDomain''addsubdomain', array("",'seconddomain.com',0,0'/public_html/user')); 
I am getting this error "curl_exec threw error "couldn't connect to host".............."
#creation #php #subdomain

Trending Topics