Old 4th October 2008, 12:29   #1
Junior Member
Join Date: Oct 2008
Posts: 1
PHP/Flash stream to file

Hi there, I work for a student radio station, we broadcast over AM as well as the intertubes via shoutcast.

Last year, I had a Flash player set up for the stream, which worked fine. It seems to have stopped working now, though, and I was wondering if someone could help me with this code:

PHP Code:
header("Content-type: audio/mpeg");

$streamname "txthost.co.uk"
$port "8104"
$path "/"

$sock fsockopen($streamname,$port);

fputs($sock"GET $path HTTP/1.0\r\n");
fputs($sock"protocol: \"http\"\n");
fputs($sock"Host: $streamname\r\n");
fputs($sock"User-Agent: WinampMPEG/2.8\r\n");
fputs($sock"Accept: */*\r\n");

fputs($sock"Connection: close\r\n\r\n");


BonzaiRob is offline   Reply With Quote
Old 4th October 2008, 13:43   #2
Nick@ss's Avatar
Join Date: Nov 2004
Location: Streamsolutions Headquarters
Posts: 11,953
>> Moved to discussion.
Nick@ss is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump