I want to code myself a billing script for my DirectAdmin webhost and I've used the api to find that I don't have the correct permissions to do so.
I am running a reseller account, and find it annoying that I can't access the api.
I don't think that running Clientexec on my account would work, because if my account can't access the api. How can clientexec?
I would really appreciate your response?
Thanks
Above is the code which I couldn't execute.
I am running a reseller account, and find it annoying that I can't access the api.
I don't think that running Clientexec on my account would work, because if my account can't access the api. How can clientexec?
I would really appreciate your response?
Thanks
Code:
<?php
include 'httpsocket.php';
$sock = new HTTPSocket;
$sock->connect('yoursite.com',2222);
$sock->set_login('admin','password');
$sock->query('/CMD_API_SHOW_ALL_USERS');
$result = $sock->fetch_parsed_body();
print_r($result);
?>
Last edited: