Hallo everywhere,
i'm passed at to work with directadmin for the first time, i need to create a script php for mange all addresses email of my domain from my web app, i'm confused, because i've found the api web page, but (for test) when i run the script setted with this code:
[BEGIN PHP CODE]
$server_login="username";
$server_pass="password";
$server_host="my-site.it"; //where the API connects to
$server_port=2222;
$sock = new HTTPSocket;
$sock->connect($server_host, $server_port);
$sock->set_login($server_login,$server_pass);
$sock->query("/CMD_API_SHOW_RESELLER_IPS");
[END PHP CODE]
The result of this request it's OR erorr 500 internal Server Error OR empty result..
I have the same problem for other key of API (es: CMD_API_SHOW_USER_USAGE ecc..)
My class php it's located at this url:
http://files.directadmin.com/services/all/httpsocket/httpsocket.php
Thanks
i'm passed at to work with directadmin for the first time, i need to create a script php for mange all addresses email of my domain from my web app, i'm confused, because i've found the api web page, but (for test) when i run the script setted with this code:
[BEGIN PHP CODE]
$server_login="username";
$server_pass="password";
$server_host="my-site.it"; //where the API connects to
$server_port=2222;
$sock = new HTTPSocket;
$sock->connect($server_host, $server_port);
$sock->set_login($server_login,$server_pass);
$sock->query("/CMD_API_SHOW_RESELLER_IPS");
[END PHP CODE]
The result of this request it's OR erorr 500 internal Server Error OR empty result..
I have the same problem for other key of API (es: CMD_API_SHOW_USER_USAGE ecc..)
My class php it's located at this url:
http://files.directadmin.com/services/all/httpsocket/httpsocket.php
Thanks