connect($mikrotik_ip, $mikrotik_username,$mikrotik_password)) { $items = $API->comm("/system/resource/print"); echo round($items['0']['free-memory']/1048576)." MB"; } ?>