Search the Community
Showing results for tags 'web rádio'.
Found 2 results
-
web rádio [WEB RÁDIO] COMO FAZER UMA TRANSMISSÃO DA INTERNET
Moises Fortunato Warhol posted a topic in Softwares e Apps
Estou montando uma web rádio, e preciso de ajuda para retransmitir a Voz do Brasil usando o player das rádios públicas (rádio justiça / senado e outras). Eu uso o ZaraRadio para retransmitir, porém estou precisando de um outro programa, pois o ZaraRadio não está funcionando corretamente. Alguém pode me indicar?-
- transmissão
- online
- (and 6 more)
-
<?php $ip = "149.56.41.235"; $porta = "9946"; $senha = "--"; $listenlink = 'http://149.56.41.235:9946/'; $fp = fsockopen($ip, $porta, $senha); if(!$fp) { $sucesso=2; } if(@$sucesso!=2){ fputs($fp,"GET /index.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); while(!feof($fp)) { @$pg .= fgets($fp, 1000); } fclose($fp); $paage = ereg_replace(".*<font class=default>Stream Title: </font></td><td><font class=default><b>", "", $pg); $paage = ereg_replace("</b></td></tr><tr><td width=100 nowrap>.*", "", $paage); $pge = ereg_replace(".*<font class=default>Stream Genre: </font></td><td><font class=default><b>", "", $pg); $pge = ereg_replace("</b></td></tr><tr><td width=100 nowrap>.*", "", $pge); $locutor = ereg_replace(".*<font class=default>Stream Genre: </font></td><td><font class=default><b>", "", $pg); $locutor = ereg_replace("</b></td></tr><tr><td width=100 nowrap>.*", "", $locutor); $musica = ereg_replace(".*<font class=default>Current Song: </font></td><td><font class=default><b>", "", $pg); $musica = ereg_replace("</b></td></tr></table>.*", "", $musica); $numbers = explode(",",$paage); $programa=$numbers[0]; @$connected=$numbers[1]; } $fp2 = fsockopen($ip, $porta, $senha); if(!$fp2) { $sucesso2=2; } if(@$sucesso2!=2){ fputs($fp2,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); while(!feof($fp2)) { @$pg2 .= fgets($fp2, 1000); } fclose($fp2); $pag = ereg_replace(".*<body>", "", $pg2); $pag = ereg_replace("</body>.*", ",", $pag); $numbers = explode(",",$pag); $ouvintes=$numbers[0]; } ?> Eai galera do fórum iMasters! Estou montando uma rádio web e estou montando atualmente o player, por isso montei esse código em PHP só pra pegar os dados do shoudcast como os do: nome do locutor, o nome do programa, o nome da música e a quantidade de ouvintes e exibir, e ele funciona perfeitamente... Quando executo no host local, só que quando eu hospedo ele não é reconhecido no host fazendo com que ele demore pra carregar e apresenta o erro: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at admin@main-hosting.eu to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Se alguém souber como soluciono este erro ficarei muito grato :x Desde já, atenciosamente.