Re: cgi--remove X-Powered-By and Content-type

From: Date: Wed, 10 Jan 2001 18:18:15 +0000
Subject: Re: cgi--remove X-Powered-By and Content-type
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33719@lists.php.net to get a copy of this message
I think you could also turn expose_php off in php.ini (if you use it) At 19:11 10.1. 2001, Philip Olson wrote the following: -------------------------------------------------------------- >Add a -q > >#!/usr/local/bin/php -q > >To suppress them. > > >Philip Olson >http://www.cornado.com/ > >On Wed, 10 Jan 2001, Tom Harris wrote: > >> I'm sure this is an easy question (I'm just too dumb to figure it out). >> >> When I run a php script from the shell it always outputs >> X-Powered-By: PHP/4.0.3pl1 >> Content-type: text/html >> >> Normally I just ignore this, but I've been using cron to run a php script >> and I'm getting my mailbox cluttered with messages that just contain the >> above 2 lines. Is there a way to make the cgi version of php not send those >> two lines. I tried changing default_mimetype ="" in the php.ini file but >> that didn't work. >> >> Thanks >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >> For additional commands, e-mail: php-general-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz

« previous php.general (#33719) next »