I run a shoutcast station and we recently upgraded to the Shoutcast 2.X DNAS server. Since it passes its stats via XML, the script we previously used to read "song now playing" doesn't work any longer. I'm a novice with PHP, but discovered the PHP5.X "SimpleXML" function.. I figured out what I thought might work to read just the "songtitle" element returned from "http://localhost:8000/stats?sid=1". (sc_trans/sc_serv are both on the same server). When I run the following script via the webbrowser, I get an XML parsing error/fatal exception: string cannot be parsed as xml. If I view the page with a webbrowser, I get a page showing the xml and saying "there is no style-information, the document tree is shown below".. The script is as follows:\[code\]<?php$url = "http://localhost:8000/stats?sid=1";$result = $url.urlencode($url);$process = curl_init($result);curl_setopt($process, CURLOPT_HEADER, 0);curl_setopt($process, CURLOPT_POST, 1);curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);curl_setopt($process, CURLOPT_CONNECTTIMEOUT, 1);$resp = curl_exec($process);curl_close($process);header('Content-Type: text/xml');$xml = new SimpleXMLElement($resp);$currentsong = $xml->shoutcastserver->songtitle;echo $currentsong;?>\[/code\]The supposedly XML returned when I look via a webbrowser is:\[code\]<SHOUTCASTSERVER><CURRENTLISTENERS>3</CURRENTLISTENERS><PEAKLISTENERS>3</PEAKLISTENERS><MAXLISTENERS>32</MAXLISTENERS><UNIQUELISTENERS>3</UNIQUELISTENERS><AVERAGETIME>2536</AVERAGETIME><SERVERGENRE>New Age</SERVERGENRE><SERVERURL>http://xxxxxxx.xxx:8000</SERVERURL><SERVERTITLE>xxxxxxxxxx</SERVERTITLE><SONGTITLE>Current - Song</SONGTITLE><NEXTTITLE>Next - Song</NEXTTITLE><STREAMHITS>44</STREAMHITS><STREAMSTATUS>1</STREAMSTATUS><STREAMPATH>/</STREAMPATH><BITRATE>64</BITRATE><CONTENT>audio/mpeg</CONTENT><VERSION>2.0.0.29 (posix(linux x86))</VERSION></SHOUTCASTSERVER> \[/code\]Any ideas? As I said, I'm a rank noobie to PHP/XML.. ThanksDave