Get error without al the layoutstuff

MarcoMeijenberg

New member
Joined
Jul 30, 2013
Messages
1
Hello there

I'm wondering if i can get just a error code like:
OK if it succeeded
or
NOT OK if it failed

Now u get the annoying layout etcetera.

Using this code at the moment:
PHP:
<?php

include 'httpsocket.php';

$sock = new HTTPSocket;
$sock->connect('lalalalal.nl',2222);

$sock->set_login("details","details");

$sock->set_method('POST');

$subdomain = 'lalalalalaa';

$sock->query('/CMD_SUBDOMAIN',
	array(
		'action' => 'create',
		'domain' => 'lalalalala',
		'subdomain' => $subdomain
	));
$result = $sock->fetch_body();

echo $result;

?>
 
Back
Top