Minecraft: View who is online in a server

I have a website and would like to display a list of players online in my server. Most likely a php or javascript function would be ideal. Is this information public or do I need server mods to do this?

https://dinnerbone.com/minecraft/tools/status/ Has a version where if an IP:port is specified, the list of players is returned. I would like a version like this on my site, except for just my server.

Does anyone know of anything like this?


To do this your server needs to have RCON enabled.
Basically that allows services to access data from your server. (Read more about RCON here)

An example implementation in PHP that you could use on your website would be this:
https://bitbucket.org/jyc/rcon/overview

Or you could use the same code Dinnerbone used:
https://github.com/Dinnerbone/mcstatus