Re: php as cgi
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: php as cgi

From: Iván Sánchez Ortega <i.punto.sanchez--@rroba--mirame.punto.net>
Date: Tue Jan 31 2006 - 12:25:52 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Captain Dondo wrote:

> 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?

Hhhhmmm... Have you tried to... ?

<?php

header('HTTP/1.0 200 OK');
header('Content-type: text/plain');

?>

- --
- ----------------------------------
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/
MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD30lA3jcQ2mg3Pc8RAvTqAJ96rnWLqW8SThAGRLx/p9WGTtkJSwCbBR6J
0lTiSmzLiRWmVYYL3SKVCfI=
=JOrH
-----END PGP SIGNATURE-----
Received on Tue Feb 7 21:08:14 2006