On Friday, June 27, 2003, at 03:40 AM, Ford, Mike [LSS] wrote:


-----Original Message-----
From: John Luxford [mailto:[EMAIL PROTECTED]
Sent: 26 June 2003 18:15

Thanks for the info.  The problem is that I'm trying to output an M3U
file to stream a series of MP3s, and some players won't
properly parse
the output due to the first line containing that chunk info.
Is there
a way to turn it on and off that you know of?

Well as this is an HTTP protocal layer setting, I'd guess it would have to be in your Web server configuration -- beyond that, I'm sorry I haven't a clue.

Thanks anyway. I actually did find a solution at the PHP-level, but couldn't find anything on it in the Apache manual. If you first buffer the output, then use it to set the Content-Length header in a PHP header() call, and then output your data, the Content-Length header causes the "Transfer-Encoding: chunked" to go away.


Since this is an issue that only seems to affect data passed on to browser plugins -- and not the browsers themselves -- only in certain browsers, such a solution works just fine for me, and might for others too. Hope this solution can help others as well.

Cheers,

Lux


Cheers!


Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211



--


John Luxford
President and Chief Developer
______________________________
SIMIAN systems
Driving Web Content Management
______________________________
web   : http://www.simian.ca/
email : [EMAIL PROTECTED]
phone : 204.942.8630
fax   : 309.218.3874


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to