<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Matt Ford</title><link>http://disqus.com/people/186a5dc1275836b366bc793bb1c59c90/</link><description></description><language>en</language><lastBuildDate>Fri, 01 Aug 2008 06:00:58 -0000</lastBuildDate><item><title>Re: How to pull statistics from Icecast with PHP</title><link>http://th1nk.disqus.com/how_to_pull_statistics_from_icecast_with_php/#comment-1602002</link><description>Thanks for the code. &lt;br&gt;&lt;br&gt;I am totally new to PHP and found that it wouldn't run at first on my hosting company's server (which is running PHP 5). I found that I needed to change the line&lt;br&gt;&lt;br&gt;require_once('icestats.php');&lt;br&gt;&lt;br&gt;in the example page to&lt;br&gt;&lt;br&gt;include 'icestats.php';&lt;br&gt;&lt;br&gt;Otherwise I got a 'class declared twice' error or something like that.&lt;br&gt;&lt;br&gt;Also for those people like me who don't have a clue how to extract individual fields from the returned object, after a bit of trial and error (!) it turns out you can do it like this:&lt;br&gt;&lt;br&gt;For example, to print the current artist:&lt;br&gt;&lt;br&gt;echo $stats-&amp;gt;artist[0];&lt;br&gt;&lt;br&gt;Basically change 'artist' above for whatever other field your are interested in..&lt;br&gt;&lt;br&gt;Thanks again for sharing your code - &lt;br&gt;Matt</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Ford</dc:creator><pubDate>Fri, 01 Aug 2008 06:00:58 -0000</pubDate></item></channel></rss>