Hi,
I want to check if domain is exist with DirectAdmin API.
I use this:
But $result return a full directadmin page on echo instead the exist.
What is problem?
I want to check if domain is exist with DirectAdmin API.
I use this:
PHP:
$sock = new HTTPSocket;
$sock->connect(SERVER_IP, 2222);
$sock->set_login('username', 'password');
$sock->set_method('POST');
$sock->query('/CMD_API_DNS_ADMIN', array('domain' => 'domain', 'action' => 'exists'));
$result = $sock->fetch_parsed_body();
But $result return a full directadmin page on echo instead the exist.
What is problem?