Packing file data into a variable???

From: Date: Sat, 22 Sep 2001 17:51:40 +0000
Subject: Packing file data into a variable???
Groups: php.general 
Request: Send a blank email to php-general+get-68343@lists.php.net to get a copy of this message
hey- my main goal here is to be able to stream an mp3 through any player that can accept m3u files. My idea was to use the format of an m3u file, which looks like this: #EXTM3U #EXTINF:324,cs-1.mp3 http://www.fplg.net/audio/cs-1.mp3 and pack it into a variable to be sent out using a header command...as such: $buffer = "#EXTM3U\n"; $buffer .= "#EXTINF:-1,cs-1.mp3\n"; $buffer .= http://www.fplg.net/audio/cs-1.mp3; I'm not sure of the exact header command I should use, or rather the format of the command I'd send using the header function, but is this possible or do I need to do this some other way?? chris

« previous php.general (#68343) next »