hello
i found this code is useful but when i run it no response from api because it read the results from mikrotik/torch continuously , is there any idea to paste the response to a page or mysql database ?
<?php require('routeros_api.class.php'); $API = new routeros_api(); $iface=$_GET["iface"]; if ($API->connect('185.101.17.238', 'api', 'api1234')) { echo ""; print 'Connect OK!!!'; echo "
"; $API->write('/tool/torch',false); $API->write("=interface=$iface"); $ARRAY = $API->read(false); print_r($ARRAY); echo "
"; $API->disconnect(); } else { print 'Connect Error'; } ?>