Jump to content
xisto Community
Sign in to follow this  
iGuest

Server Won't Connect To Radio

Recommended Posts

Hi.

I recently purchased a radio for my website, but I'm having problems. I've made a script to go onto the radio server and get the stats, but it won't work. It just says that it can't connect. The url for my radio is http://forums.xisto.com/no_longer_exists/. Is there something on Xisto that prevents you connecting to other ports?

Share this post


Link to post
Share on other sites

jay, your radio is the slowest site ever except for ripit.maybe you dont have to go all fancy and try and go one step ahead of all the other radio sites?just do it like normal sites do.also, most sites show fsockopen() errors, yours shows a different error.just be normal with the site like other radio fansites, you dont HAVE to use ajax to completely make the site, ALL other radio fansites just use a heap of iframes, and thats wot im gonna do.and about the port thing, lol dunno, though id gather theyd probably let you.

Share this post


Link to post
Share on other sites

Go all fancy? I do it like every other radio site gets the stats, this has nothing to do with ajax, iframes are disgusting, and if you want to know why it's slow, read the post.

Share this post


Link to post
Share on other sites

I have no problems connecting to your website. I'm assuming that the script that you have written is hosted on your Xisto website and you are connecting to your http://forums.xisto.com/no_longer_exists/ server? Would it be possible to post the code so that we can have a look at it. Just make sure you haven't made the obvious mistake of entering the ip address wrong or something trivial like that! ;)

Good Luck
-jimmy

Share this post


Link to post
Share on other sites

i dont think he has got the IP address wrong. the media player box still shows it as on and playing except it just wont actually play any sound. probably because of ur up.is that radio connection information in the radio panel right? cos i can try if you want and see if it will play.

Share this post


Link to post
Share on other sites

Ok, the code is:<?php//error_reporting(0);$shoutpage = file_get_contents('http://forums.xisto.com/;);if (eregi('Server is currently down', $shoutpage)){ $online = false;}else{ $online = true;}if ($online==false){ echo '<b>The radio\'s offline ;)</b><br>But don\'t worry! Check the schedule to see when your favourite DJ\'s next show is!';}else{ $statpage = file_get_contents('http://forums.xisto.com/no_longer_exists/ password>&mode=viewxml'); $stata = explode('<SONGTITLE>', $statpage); $stata = explode('</SONGTITLE>', $stata[1]); $csong = $stata[0]; $stata = explode('<SONGHISTORY>', $statpage); $stata = explode('<SONG>', $stata[1]); $stata = explode('<TITLE>', $stata[2]); $stata = explode('</TITLE>', $stata[1]); $lsong = $stata[0]; echo '<script language="JavaScript" type="Text/JavaScript">setTimeout(\'counter()\', 1000);</script>Current Song: <b>'.$csong.'</b><br>Last Song: <b>'.$lsong.'</b>';}?>I did use fsockopen(), but that seemed to take longer. It still had the same problems as this though.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.