Hi there,
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
?php
session_start();
print 'Content-type: text/html'
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
?php
--- 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 helps.
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
?php
session_start();
print 'Content-type: text/html' .
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 that (see
5 matches
Mail list logo