|
|
#1 |
|
Junior Member
|
does god know why??
this damn script does not work for a ld liek me??
ok........ ive seen this script floating around the board..... but no one really showed anybody how to fill in the blanks...... so what i'm asking is... what the heck do i do?? does any one have this script working on a webpage? i've modified it so that it shows images instead of text, but other then that i dunt see why it woldn't work,., here let m post the original script: it displays text and outputs whether your server is online or offline... i've tried so many things but the only thing that it gives me, regardless if my server is on or not, is offline.... my ip is 24.57.242.197 port: 8010 <?php /****************************************************************** Am I off or online? Simple function to check if your SHOUTcast server has a source connected and is online. License, free, use like the wind blows. Be nice and recognize that it was written by Jay Krivanek of <a href="http://www.radiotoolbox.com" target="_blank">www.radiotoolbox.com</a> <img src="images/smilies/wink.gif" border="0" alt=""> ******************************************************************/ $fp = fsockopen($host, $port, &$errstr, &$errno, $wait_sec); if ($fp) { fputs($fp, "GET / HTTP/1.0\r\nUser-Agent:AmIoffOrOn\r\n\r\n"); $ret = fgets($fp, 255); if (ereg("200", $ret)) { echo "Online"; } else { echo "Offline"; } fclose($fp); } else { echo "Offline"; } ?> ok so that's the basic code.. now, can someone please tell me what the heck to do? i've filled in all my stuff and tried it to NO AVAIL... intresting you say??? yes it surely is. ahaha.. now there might be an issue with teh new version o the server, but i doubt taht?? anyways. soemoen check it out and let me know......... thanx a bunch guys |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|