I've had a mysterious difficulty with both of the two linux/apache/php servers I administer. I cannot have php produce content-length http headers in any script, no matter what i've tried. ex
Header("Accept-Ranges: bytes");
Header("Content-Length: $size");
will produce only the Accept-Ranges header, while
Header("Accept-Ranges: bytes");
Header("X-Content-Length: $size");
will output something like
Accept-Ranges: bytes
X-Content-Length: 401783
So basically either php or apache is supressing my script-produced content-length header, but this does not seem to be documented behavior for either. Has anyone else had this problem?
Specs for both servers
RedHat 9
Apache 2.0.48 (and newer)
PHP 5RC2 (and newer)
I've stumped other boards with this one and, short of harassing the php developers, really don't know where to go for an answer.