I'm in the process of moving my site from one server to another (my old
hosting company appears to have gone bust).
On the old host and on my local Mac OS X machine I can send HTTP/1.1
response headers with no problem (e.g. header( 'HTTP/1.1 200 OK' ).
If I do the same on the new server I get redirected to the server's
'Internal Error' page (i.e. error 500). No indication of what the error
is.
All three servers are running PHP/4.1.2 and either Apache 1.3.26 or
1.3.27.
It appears that the new server does not like me calling header() with
any string without a colon. If do header('Henry Horse') it also causes
an error. The other servers don't. Equally, if I put a colon in the
HTTP header it also doesn't cause an error (though the header is then
meaningless).
I have no control over httpd.conf or what modules are installed. I do
have access to .htaccess. I also have no access to the error log.
Anyone got any idea what's causing this and is there a way around it?
--
Pete
====
*** Email is pete -at- dawnsun -dot- net