php as cgi



I am trying to use php 4.4.2 as a cgi scripting language. I am running a self-built linux distribution, with php 4.4.2 compiled from source. I am using the busybox web server, which doesn't have the ability to incorporate php as a module.

The problem I am having is that php is insistent about sending

X-Powered-By: PHP/4.4.2
Content-type: text/html

at the start instead of

HTTP/1.0 200 OK
Content-type: text/plain

Any way I can get php to quit doing what it's doing and do what I think it should be doing?

TIA,

--Yan
.



Relevant Pages

  • Re: php as cgi
    ... Captain Dondo wrote: ... > I am trying to use php 4.4.2 as a cgi scripting language. ... > a self-built linux distribution, with php 4.4.2 compiled from source. ...
    (comp.lang.php)
  • Re: webform validation: how to rediricet to the same page??
    ... I'm quit new in php, and I'm trying to validate the fields of a ... webform, before to send them... ... Pay very close attention to the statement: "Remember that headermust be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP." ...
    (comp.lang.php)