CMD_API_SHOW_ALL_USERS - Help

Atom-Bomb

Verified User
Joined
Jul 25, 2005
Messages
9
Hey,

I'm trying to get all the users on the server with the DirectAdmin's API script.

The code is:
Code:
$Sock = new HTTPSocket;

$Sock->connect($Data['Hostname'], '2222');
$Sock->set_login($Data['Username'], $Data['Password']);
//$sock->set_method('POST');

$Sock->query('/CMD_API_SHOW_ALL_USERS',"");
$result = $Sock->fetch_body();
echo $result;

While $Data is an array with the connection details.

I'm getting a blank page. No error, nothing.

I did something wrong?



Tomer
 
Back
Top