I have a few comments I would like to post for anyone with the php knowledge who wants to deal with it:
Let’s sat we want to use php-api as a display sollution.
The above api-php-class works even in a shared hosting environment (tested it and works very well)
This is because of the brilliant use of fsockopen in the php-class -regards to the user who wrote that! which lets a shared hosting environment php script call mikrotik in port 8728.
Even though it’s not really secure in a shared hosting to call other port than 80 it’s easy to use and you can provide information (let’s say about a hotspot, or signals - I don’t suggest providing mac addresses of your users even though I added every value you can just erase in the table the columns of sensitive values) in a http://www.domain.com . It also works on dyndns hosts as long as your modem redirects the port 8728 to your routerboard.
Things simplified are:
If you are in a shared hosting:
1.Upload , let’s say, total users connected php in http://www.domain.com
2.Users visit your domain viewing php script
3.php script calls mikrotik api
4.php returning array of values for what u asked (command /interface/registration-table/print) and php displays in your domain a value from that array (which in this case is the number of total users connected to your mikrotik).
Now if you want to monitor the above number through time (let’s say that you want to show a graph of total users in you domain.com) you would need an array of values for total users through time.
That’s why you would propably need a cron job running the php script every 15min or so, a database to store those values every 15min, and a php graph script like the “PHPGraphLib” found here http://www.ebrueggeman.com/phpgraphlib/examples.php to display/graph those values from your database.
I know it’s a lot and it’s more like a php question but if done provides a way of graphing externally (even in shared hosting) any value that can be retrieved with the mikrotik-api.Just a thought but if anyone having the php knowledge and the time would like to try it would be great.
PS:I need coffee…