Good morning everyone, I’m having trouble removing the pppoe users by php api’m using the code below, the browser crashes and only returns when reboot apache, someone could help me? very grateful to all
$API = new routeros_api();
$API->debug = false;
$API->connect($ip, $usuario, $senha);
$API->write('/ppp/secret/getall', false);
$API->write('?name=' . $login);
$ARRAY = $API->read();
$ARRAY = $ARRAY[0];
$API->write('/ppp/secret/remove', false);
$API->write('=.id='.$ARRAY['.id']);
$ARRAY = $API->read();
$API->disconnect();