Re: Strange output issue
| From: | John Luxford | Date: | Thu, 26 Jun 2003 17:15:29 +0000 |
| Subject: | Re: Strange output issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153012@lists.php.net to get a copy of this message | ||
Hi Mike,
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?
Thanks again,
Lux
On Thursday, June 26, 2003, at 11:38 AM, Ford, Mike [LSS] wrote:
-- John Luxford President and Chief Developer ______________________________ SIMIAN systems Driving Web Content Management ______________________________ web : http://www.simian.ca/ email : lux@simian.ca phone : 204.942.8630 fax : 309.218.3874-----Original Message----- From: John Luxford [mailto:lux@simian.ca] Sent: 26 June 2003 16:44 I'm having a really strange output problem that I can't figure out. The problem is that a few characters appear prepended and appended to the body of the server response. I'm running PHP 4.3.0 and 4.3.2 on Mac OS X (tibook and xserve) and Red Hat 7.1 with 4.3.2 as well, with Apache 1.3 on all of them. Here is a reproduction of the problem on two servers: From the command line... (the following URL illustrates the problem, feel free to use it) (Request) $ telnet dev.ourvoices.ca 80 GET /test.php HTTP/1.1 Host: dev.ourvoices.ca (Response) HTTP/1.1 200 OK ...other headers... Content-Type: text/html 3 foo 0 (The code in /test.php) <?php echo 'foo'; ?> (What's with the 3 and the 0)This is HTTP Chunked transfer encoding. Practically all browsers around these days understand this, and will correctly render the above as just foo (The technical details are that output is sent as a series of chunks consisting of the chunk length followed by that many bytes. A chunk length of 0 indicates the end of the data.) 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: m.ford@lmu.ac.ukTel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php