API connecting problem

giorgi91

Verified User
Joined
Oct 22, 2011
Messages
19
Hello,

I'm making billing system on my web server (Centos). I'm install only httpd and php.

I want connect my web server to Directadmin

On my billing web server I'm upload this script:

include "httpsocket.php";

$sock = new HTTPSocket;
$sock->connect("1.2.3.4", 2222);
$sock->set_login("admin","123456");

$sock->query('/CMD_API_SHOW_ALL_USERS');
$result = $sock->fetch_parsed_body();

print_r($result);
I'm get only this:
Array ( )
Also does not work user creating, etc...

I think it does not connected.

Can anyone help me?

Thank you
 
Top