The idea is this, I have a website so that users can restart their Internet connection, but I want the command to restart the DHCP interface, which is "/ ip dhcp-client release 0" can be sent to the Mikrotik using the API, the idea of the web is that when the button is given to restart the connection, execute the file release.php which contains this code for the restart of it but it does not work for me:
<?php
require('../routeros_api.class.php');
$API = new RouterosAPI();
$API->debug = true;
if ($API->connect('111.111.111.111', 'LOGIN', 'PASSWORD')) {
$API->comm("/ip/dhcp-client/release/0"
$API->disconnect();
}
?>
The problem is that I'm sure that this line is what I'm not putting well:
$API->comm("/ip/dhcp-client/release/0")
If you could help me, the idea is to send the command to the mikrotik so that remotely and without the users to access the team in Release to their connection and giving it that reboots, greetings