Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

stream error

Featured Replies

hi guys

excuse my bad english :D

i want to make a flash webradio player and i need follow code to connect to shoutcast server but something is wrong with it.

can someone tell me where the error is?

 

thx

 

<?php
$streamname = "85.25.150.228"; // Server (Host)
$port = "9210"; // Port des Streams
$stream_quality=192; // Kbit/s


$buffer_time=15; // Die Anzahl der Minuten, die der Stream Puffern soll
$path = "/"; 
$stream_quality_kbytes=$stream_quality/8;
$stream_quality_kbytes_per_minute=$stream_quality*60;
$content_length=$buffer_time*1024*$stream_quality_kbytes_per_minute;
$length_header="Content-length: ".$content_length;
header("Content-type: audio/mpeg");
header($length_header);
$sock = fsockopen($streamname,$port);
fputs($sock, "GET $path HTTP/1.0\r\n");
fputs($sock, "Host: $streamname\r\n");
fputs($sock, "User-Agent: WinampMPEG/2.8\r\n");
fputs($sock, "Accept: */*\r\n");
fputs($sock, "Icy-MetaData:0\r\n");
fputs($sock, "Connection: close\r\n\r\n");
fpassthru($sock);
fclose($sock);
?>

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.