|
Posted by Tim Roberts on 02/01/06 09:43
Captain Dondo <yan@NsOeSiPnAeMr.com> wrote:
?
>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?
Unless the script name starts with "nph-", the HTTP/1.0 line is the
responsibility of the web server, not the CGI script. Of course, it's
possible that the busybox web server never does the parsing that it's
supposed to, in which case the 'header("HTTP/1.0 200 OK");' suggestion is
the right one.
The X-Powered-By line doesn't hurt anything. Content-Type does not have to
be first.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Navigation:
[Reply to this message]
|