setheroth69 Posted August 2, 2007 Share Posted August 2, 2007 In my quest to get this stupid now playing thing working I'm trying the following: <?php $url = "http://s9.viastreaming.net:7070/admin.cgi"; $query = "?pass=PASSWORD&mode=viewxml HTTP/1.0"; $serviceurl = $url.$query; $results = simplexml_load_file($serviceurl); print $results->SHOUTCASTSERVER->SERVERTITLE." "; print $results->SHOUTCASTSERVER->SERVERURL." "; ?> Now I tested it with yahoo's search and it worked fine (it was slightly modified) But when I run it (same server I did the yahoo search check on) the way it is above, it hangs (my loading progress bar jumps to the halfway point and just sits there). This is the top part of the xml file I'm trying to read thru: <SHOUTCASTSERVER> <CURRENTLISTENERS>9</CURRENTLISTENERS> <PEAKLISTENERS>16</PEAKLISTENERS> <MAXLISTENERS>75</MAXLISTENERS> <REPORTEDLISTENERS>5</REPORTEDLISTENERS> <AVERAGETIME>16695</AVERAGETIME> <SERVERGENRE>Various</SERVERGENRE> <SERVERURL>www.whisperingroseradio.com</SERVERURL> <SERVERTITLE>The Midnight Choir, w DJLandon ICQ 475-387-548</SERVERTITLE> what am I doing wrong? (and if its something simple slap me and point it out?) thanks in advance Link to comment https://forums.phpfreaks.com/topic/63013-not-sure-why-its-hanging/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.