Salam alaikoum when I restart MikroTik remain API does not respond and continues to work automatically updated even hang Apache completely I want to know what is the solution to that problem
if ($API->connect('---,---,---,---','user','password')){
//your code
$API->disconnect();
}else{
die('<center><h1>NOT Respond</h1></center>');
}