\n"; } else { fputs ($fp, "GET / / HTTP/1.0\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\nHost: 212.43.196.210:8000\r\n\r\n"); while (!feof($fp)) { $line = fgets ($fp,21048); eregi( "Current Song: (.*)", $line, $regs ); $currentsong = htmlspecialchars($regs[1]); } fclose($fp); } echo "$currentsong";");?> \n"; } else { fputs ($fp, "GET / / HTTP/1.0\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\nHost: 212.43.196.210:8000\r\n\r\n"); while (!feof($fp)) { $line = fgets ($fp,21048); eregi( "Current Song: (.*)", $line, $regs ); $currentsong = htmlspecialchars($regs[1]); } fclose($fp); } echo "$currentsong"; php?>