ID:               16111
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: Windows
 PHP Version:      4.2.1
 New Comment:

I too had the same problem.  I read that I had to set
cgi.force_redirect=0 I did this and nothing happened.  I tried
everything, only to find out that my php.ini file was not in c:\winnt
like the docs said they it would be.  No the binary distro put it in
c:\documents and settings\administrator\windows  I copied that file to
c:\winnt and the php part is working.


Previous Comments:
------------------------------------------------------------------------

[2002-08-26 17:32:53] [EMAIL PROTECTED]

I read bug this bug and have changed my security setting on IIS and it
makes
no difference. I'm also using Zend, Smarty & ADODB. In addition I'm
running on a pentium 4. I am
having major problems in our login program and took the code out into
a
seperate test problem, and am still having the same redirect problems.

I have been checking the Forums in the PHP community for the last week
and
find this seems to be a problem. I've tested the following code and it
only will re-direct 1 time out of 5 or 6 times, of executing the
code(with
no code changes). It gives an error message the other times.

Here is my test program:

<?
include_once("config.inc"); // Include files smarty etc.
include_once("conn.inc"); // ADODB Connection
        session_start();
        $sess_key=session_id();
        $access = 'grant';
        $page_name='page1.php';
        $login='shelley';
        $HTTP_SESSION_VARS['saccess'] = $access;
        $HTTP_SESSION_VARS['susername'] = 'Shelley Jones';
        $HTTP_SESSION_VARS['suserid'] = $login;
        $HTTP_SESSION_VARS['suseris'] = 'Cust';
        $HTTP_SESSION_VARS['spage'] = $page_name;
header("Location:page2.php?K=".$sess_key."&L=".$login);
flush();
exit; 


Error Msg recieving.

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:

Shelley

------------------------------------------------------------------------

[2002-06-18 05:48:22] [EMAIL PROTECTED]

Leaving this open as a doc problem.

Derick

------------------------------------------------------------------------

[2002-06-18 05:39:30] [EMAIL PROTECTED]

Ok .. Big Oops

No BUG!

Big lesson: 
This is to do with permission settings when installing php. Make sure
your IIS user or everybody has permissions to access php and dlls in
the php directory.

Sorry guys :)

------------------------------------------------------------------------

[2002-06-18 05:15:53] [EMAIL PROTECTED]

>The problem was the php.exe was not reading the php.ini
>in the system32 directory as per normal.

Sorry I meant to say "winnt" folder and not "system32"

------------------------------------------------------------------------

[2002-06-18 04:05:09] [EMAIL PROTECTED]

It's c:\winnt\ as stated in
http://cvs.php.net/co.php/php4/win32/install.txt

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16111

-- 
Edit this bug report at http://bugs.php.net/?id=16111&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to