Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Richard Lynch
On Wed, May 30, 2007 2:47 am, Sebe wrote: > Yeni Setiawan wrote: >> >> >> On 5/30/07, *Sebe* <[EMAIL PROTECTED] > >> wrote: >> >> I run some scripts via php (cgi) which sends output to another >> file, but >> it's including unwanted cookie header, etc in the

Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Richard Lynch
php -q On Wed, May 30, 2007 1:11 am, Sebe 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

Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Robert Cummings
On Wed, 2007-05-30 at 09:38 +0100, Stut wrote: > Sebe wrote: > > > > i tried using -q > > still shows the headers.. this problem started when i switched to php cgi. > > Well that's your mistake. The CGI binary is meant for use as a web page > generator. You need php-cli. While php-cli is an impr

Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Sebe
Stut wrote: Sebe wrote: Yeni Setiawan wrote: On 5/30/07, *Sebe* <[EMAIL PROTECTED] > 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

Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Stut
Sebe wrote: Yeni Setiawan wrote: On 5/30/07, *Sebe* <[EMAIL PROTECTED] > 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.p

Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Sebe
Yeni Setiawan wrote: On 5/30/07, *Sebe* <[EMAIL PROTECTED] > 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/pr

Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Zoltán Németh
2007. 05. 30, szerda keltezéssel 02.11-kor Sebe ezt írta: > 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 o

[PHP] php via cmdline including unwanted headers

2007-05-29 Thread Sebe
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: