regards
help with php api
I’m trying to show the hotspot users to print an orderly manner.
This is the code I’m using
<?php
// put your code here
require('routeros_api.class.php');
$API = new routeros_api();
$API->debug = true;
if ($API->connect('10.0.0.36', 'admin', '330')) {
$API->write('/ip/hotspot/user/print');
$READ = $API->read(FALSE);
$ARRAY = $READ;
for ($x=0;$x<count($ARRAY); $x++)
echo $ARRAY[$x]."<br/>";
$API->disconnect();
}
?>
esto es el resultado
Uploaded with ImageShack.us
what I want is to miss the first part comes out messy
thanks …