Re: php via cmdline including unwanted headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, May 30, 2007 2:47 am, Sebe wrote:
> Yeni Setiawan wrote:
>>
>>
>> On 5/30/07, *Sebe* <sebastian@xxxxxxxx <mailto:sebastian@xxxxxxxx>>
>> wrote:
>>
>>     I run some scripts via php (cgi) which sends output to another
>>     file, but
>>     it's including unwanted cookie header, etc in the outfile.
>>
>>     example:
>>
>>     php /home/dev/script.php > /home/production/feeds/news.xml 2>&1
>>
>>     and at the top of news.xml i get:
>>
>>     X-Powered-By: PHP/5.2.2
>>     Set-Cookie: .....
>>     Set-Cookie: .....
>>     Cache-Control: private
>>     Content-Type: text/html; charset=ISO-8859-1
>>
>>     i turned off expose php which gets rid of the x-powered-by but
>> what
>>     about the rest?
>>
>>
>>
>>
>> try to use quiet mode by using -q option as follow:
>>
>> php -q  /home/dev/script.php > /home/production/feeds/news.xml 2>&1
>>
> i tried using -q
> still shows the headers.. this problem started when i switched to php
> cgi.

I guess that's why we have both CLI and CGI...

Go back to CLI, not CGI.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux