I have a perl and a php script both printing out Hello World, the output are
very similar when called from a DOS prompt:
--- BEGIN --------------
--- END -----------------
When I use my broswer to call yo.pl as a cgi it's fine.
When I call yo.php on the other hand, I get internal error, and the error
"[<DATE>] [error] [client <IP ADDR>] Premature end of script headers:
What is going on? The php script is definitely printing a http a header
with blank lines before the actual html as above. Is the "X-Powered-By"
line causing problems?
It's taken me about 4 hours to get to this stage with PHP, and I've began to
wonder if I should have tried it on my SuSE6.4 installation instead as most
docs are Linux focused. :-(