Re: Running php as a CGI

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Running php as a CGI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48952@lists.php.net to get a copy of this message
On Tue, 17 Apr 2001, Boget, Chris wrote: > We compiled PHP to be used as a CGI and it's > working great. However, whenever we run a > php script, the following message gets outputted > at the start of the output: > > "X-Powered-By: PHP/4.0.3pl1 > Content-type: text/html" > > Is there any way we can suppress that message? > I looked all over the docs and missed that info if > it's there. If the details on how to suppress this > is in the documentation, a link would be most > appreciated (or a link to anywhere else that might > have this info). Otherwise, any insight would > be greatly appreciated! > > Chris > Yup! Just run it with the flag '-q' to QUELL HTML-headers. Example : #! /path/to/php -q <?PHP print "Hello World!\n"; ?> Or just run them with 'php -q script_name' Good luck -- Knut ------ Knut H. Hassel Nielsen Principal Engineer / Avdelingsingeniør Norwegian University of Science and Technology / NTNU Department of Computer and Information Science / IDI N-7491 Trondheim, Norway Phone Office / Telefon jobb : (+47) 73 59 18 46 Fax Office / Telefax jobb : (+47) 73 59 17 33 Cell. Phone / Mobiltelefon : 91 59 86 06

« previous php.general (#48952) next »