Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.