REDIRECT_STATUS and setup

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Zaid
Forum Newbie
Posts: 5
Joined: Sat Oct 22, 2005 11:50 pm

REDIRECT_STATUS and setup

Post by Zaid »

Hi friends,

I just reinstalled php on my IIS localhost and somehow when I attempt to run a simple script with the following code:

Code: Select all

<?php

phpinfo();

?>
a "save file" dialog box pops up prompting me to save or open the file. If I open the file, it displays the following in a notepad file:

Code: Select all

<p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This
means that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit 
<a href="http://php.net/install.windows">the manual page</a>.</p>
This seems like a simple problem with setup, maybe with php.ini.

Does anyone have any ideas?

Thanks in advance

Zaid
Post Reply