I need a php script that delete a host from hotspot/ip binding.
I try this :
Code: Select all
<?php
require('router_class.api.php');
$API = new routeros_api();
$API->debug = true;
if ($API->connect('1.1.1.1,'xxxxx','xxxxxx')) {
$API->comm("/ip/hotspot/ip-binding/remove/0");
$READ = $API->read(false);
$ARRAY = $API->parse_response($READ);
print_r($ARRAY);
$API->disconnect();
}
?>
I try also this :
Code: Select all
<?php
require('router_class.api.php');
$API = new routeros_api();
$API->debug = true;
if ($API->connect('1.1.1.1,'xxxxxx','xxxxxx')) {
$API->comm("/ip/hotspot/ip-binding/remove", array (
"numbers" => "0" ,
));
$READ = $API->read(false);
$ARRAY = $API->parse_response($READ);
print_r($ARRAY);
$API->disconnect();
}
?>
Any suggestions ?
Bye
brasileottanta