Shoutcast Xml Parser

liunx

Guest
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> This is a script that connects to a Shoutcast server page, grabs the information, then displays it on the host website. The problem is when I run in on my webspace is that it tells me the server is down, which it isn't. The script works fine on my test web server sitting next to me. I'm assuming that this type of connection cannot be made due to the configuration of your servers. I would just like a confirmation on this. Thanks for the help. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blush.gif" style="vertical-align:middle" emoid=":blush:" border="0" alt="blush.gif" /> <br /><br /><a href="http://thefinalchapter.cc/test/simple.php" target="_blank">http://thefinalchapter.cc/test/simple.php</a> (shows the error)<br /><a href="http://thefinalchapter.cc/test/simple.phps" target="_blank">http://thefinalchapter.cc/test/simple.phps</a> (shows the source code)<!--content-->
Both of those links bring up a 404 error.<!--content-->
<!--QuoteBegin-TCH-Bruce+Apr 17 2005, 07:59 AM--><div class='quotetop'>QUOTE(TCH-Bruce @ Apr 17 2005, 07:59 AM)</div><div class='quotemain'><!--QuoteEBegin-->Both of those links bring up a 404 error.<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=125036"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br />whoops!<br /><br /><a href="http://thefinalchapter.cc/test_area/simple.php" target="_blank">http://thefinalchapter.cc/test_area/simple.php</a> (shows the error)<br /><a href="http://thefinalchapter.cc/test_area/simple.phps" target="_blank">http://thefinalchapter.cc/test_area/simple.phps</a> (shows the source code)<!--content-->
I ran the script on my local machine here and it appears to work as intended. I then tried to run it on my TCH account, and it returned "Unable to connect to server". I altered the code to output a real error message, and the script returned "Connection timed out".<br /><br />I searched the forums for 'fsockopen' and came up with <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=13946&st=0&p=97249" target="_blank">this</a>. Basically, it's very possible that TCH is blocking the port, but you may be able to get it opened by submitting a ticket to the Help Desk.<!--content-->
 
Top