silverstay
New member
- Joined
- Aug 1, 2013
- Messages
- 1
I'm trying to create a subdomain with php. I have read a bunch of texts, found even some examples, configured at my needs, but it doesnt seem to work
Im using httpsocket. If it can't connect if shows error, but when its seems to be fine, the page just loads, loads and loads. It never stops. I have to reset session, in order to get back to page. Can anyone help me.
Im using these kind of lines to create subdomain.
can anyone help me, and tell me if im doing something wrong.
I've been around this problem for a 3 days, and i just cant to figure it out.
Am i missing something?
Bunch of thanks.
Im using httpsocket. If it can't connect if shows error, but when its seems to be fine, the page just loads, loads and loads. It never stops. I have to reset session, in order to get back to page. Can anyone help me.
Im using these kind of lines to create subdomain.
PHP:
$sock = new HTTPSocket;
$sock->connect('localhost',2222);
$sock->set_login("*username*","*password*"); //*username* - username , *password* - password
$sock->set_method('POST');
$sock->query('/CMD_API_SUBDOMAINS',
array(
'action' => 'create',
'domain' => 'mydomain.com',
'subdomain' => 'subdom'
));
$result = $sock->fetch_body();
can anyone help me, and tell me if im doing something wrong.
I've been around this problem for a 3 days, and i just cant to figure it out.
Am i missing something?
Bunch of thanks.