Strange output issue
| From: | John Luxford | Date: | Thu, 26 Jun 2003 15:44:28 +0000 |
| Subject: | Strange output issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152999@lists.php.net to get a copy of this message | ||
Hello,
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)
You can also duplicate this problem at ourvoices.sitellite.org on the Linux box as well.
phpinfo() can be seen for both these machines at:
http://dev.ourvoices.ca/phpinfo.php
http://ourvoices.sitellite.org/phpinfo.php
Anyone seen this before? Anyone know of a solution?
Thanks in advance,
Lux
--
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