Re: Please Help.. cgi.force_redirect does not work
| From: | Scott Fletcher | Date: | Thu, 03 Jul 2003 19:44:23 +0000 |
| Subject: | Re: Please Help.. cgi.force_redirect does not work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153920@lists.php.net to get a copy of this message | ||
Oddly, the CGI Error message is intermitted. It come on some of the time
and some of the other time doesn't. What is the problem here.....?
"Scott Fletcher" <scott@abcoa.com> wrote in message
news:20030703171839.92041.qmail@pb1.pair.com...
> Hi!
>
> To make the long story short, we use IIS 5.0 with PHP 4.0.6 for a
while.
> Then we builted a new database server, SQL-2000 and point the website to
the
> new server. Then we notice the problem with the CGI error. So, we last
> week downloaded the PHP 4.3.3 and update the IIS with the newer PHP
version
> and set the cgi.force_redirect to zero in php.ini. See example below
> --snip--
> ; cgi.force_redirect is necessary to provide security running PHP as a CGI
> under
> ; most web servers. Left undefined, PHP turns this on by default. You
can
> ; turn it off here AT YOUR OWN RISK
> ; **You CAN safely turn this off for IIS, in fact, you MUST.**
> cgi.force_redirect = 0
> --snip--
>
> We still have problem with CGI error. The use of php function, header()
is
> what cause the error. Yes, the IIS and the website are reading the
php.ini
> correctly. I checked that out and it is verified.
>
> So, what is the workaround to the CGI error??
>
> Thanks,
> Scott
>
>