Those TeamSPeak scripts should work if you put them inside a PHP box. Also, note that your TS provider has to have the correct query ports open or else the script won't work.
You might also want to look at your TS host's website and see if they have any scripts or info. In my case, my TS provider has its own PHP script that I can execute to get a nice output that shows who is on, but they do not open any of the query ports to allow other scripts to get the same info.