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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to