Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
> > I have a problem setting my headers right with php running as > > .cgi. I have to specify a Content-type for the cgi file to work. > > But how should I do both that and start a session? > > Try using header() instead of print to set Content-Type. > > Hope that helps. Thanks Chris. I tried t

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
> >I have a problem setting my headers right with php running as .cgi. I > >have to specify a Content-type for the cgi file to work. But how > >should I do both that and start a session? > > > >I have a few options: > > > >#! /usr/local/bin/php > > >session_start(); > >print 'Content-type:

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Chris Shiflett
--- Børge Strand <[EMAIL PROTECTED]> wrote: > I have a problem setting my headers right with php running as > .cgi. I have to specify a Content-type for the cgi file to work. > But how should I do both that and start a session? Try using header() instead of print to set Content-Type. Hope that he

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread David Otton
On Sat, 10 Jan 2004 17:44:18 +0100 (MET), you wrote: >I have a problem setting my headers right with php running as .cgi. I >have to specify a Content-type for the cgi file to work. But how >should I do both that and start a session? > >I have a few options: > >#! /usr/local/bin/php >session_s