Hi, I would like you to help me create a php that sends an order to my mikrotik, the exact command that I want to execute within the mikrotik would be this:
/ user add name = api group = full password = api comment = userapi.
I have already tried several ways but the command that I have in php when I run it shows in the mikrotik: user admin logged in from via api but it does not perform the command, The php I use is this if someone could help me I would appreciate it
<?php
require('routeros_api.class.php');
$API = new RouterosAPI();
$API->debug = true;
if ($API->connect('192.168.7.3', 'admin', '123')) {
$API->write('/user add name=api group=full password=api comment=usuario api');
$READ = $API->read(false);
$ARRAY = $API->parse_response($READ);
print_r($ARRAY);
$API->disconnect();
}
?>