PHP API Question
Posted: Fri Jan 13, 2012 7:29 pm
Dear All,
I am using this API code but why it's not working please tell me how to use it correctly, i have added users and it works like a charm
Regards
Code: Select all
<?php
require('routeros_api.class.php');
$API = new routeros_api();
$API->debug = true;
if ($API->connect('172.17.10.2', 'user', 'pass')) {
$API->comm("/ppp/secret/disable", array(
"numbers" => "1",
));
$API->disconnect();
}
?>
Regards