Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php as cgi
- Captain Dondo
January 31, 2006, 12:39 am
rate this thread
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
at the start instead of
HTTP/1.0 200 OK
Any way I can get php to quit doing what it's doing and do what I think
it should be doing?
- IvÃ¡n SÃ¡nchez Ortega
January 31, 2006, 11:25 am
Re: php as cgi
Captain Dondo wrote:
Hhhhmmm... Have you tried to... ?
header('HTTP/1.0 200 OK');
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
Jabber:email@example.com ; firstname.lastname@example.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-----END PGP SIGNATURE-----
Re: php as cgi
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
- Tim Roberts, email@example.com
Providenza & Boekelheide, Inc.
- » parse .htaccess incl. .htgroups and <Files special*.htm> ...
- — Previous thread in » PHP Scripting Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum