Do you have any ideas what I should do to make both .php and .cgi
versions work?
Here's test3.cgi:
==
#! /usr/local/bin/php
?php
print 'Content-type: text/html' . \n\n;
session_start();
Have you tried putting
Cheers Chris
I will try to explain using your code:
Here's test3.cgi:
==
#! /usr/local/bin/php
?php
print 'Content-type: text/html' . \n\n;
When you are running as a CGI, you can set the Content-Type header in this
way.
I have a problem with html headers using sessions. I guess it has to
do with the Content-type line. My ISP uses PHP 4.3.4 with
register_globals = On (although I want this to work with Off too).
My program (test3.cgi, test3.php) simply logs the number of times I
have accessed a web site. As a php
On Thu, 2004-01-08 at 14:14, Brge Strand wrote:
[snip]
Do you have any ideas what I should do to make both .php and .cgi
versions work?
Here's test3.cgi:
==
#! /usr/local/bin/php
?php
print 'Content-type: text/html' . \n\n;
--- Børge Strand [EMAIL PROTECTED] wrote:
I have a problem with html headers using sessions.
I think you mean HTTP headers.
I guess it has to do with the Content-type line.
Yes, and you seem to have a fundamental misunderstanding between using PHP
as an Apache module versus using PHP as a CGI
5 matches
Mail list logo