Users can not remove the pppoe for php api

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();

Maybe try to turn off your web server’s Antivirus and/or Firewall?

That’s really the only reason I can think of PHP (and by extension Apache) hang… assuming this is the only thing in your PHP file.