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:
win 98SE, PWS, PHP4.3.0 installbinary. ME TOO! read everything I can find - no solution 1. PWS installed and working 2. run install shield for PHP4.3.0 normal install (also did manual install forcing PWS etc.) 3. build simple hello.php put in root of PWS directories 4. 'Execute' is checked for that folder 5. useing browser - link/get/select hello.php 6. get same BUG. error "Security Alert... (seems PHP is trying!) 7. Changed cgi.force_redirect = 0 in PHP.ini (in c:/windows) 8. bug changed. Now the hello.php script just shows up as html text i.e. the <?php ...?> is not executed. (seems PHP is not being accessed or pulled into the game) 9. because symptoms changed PHP IS reading the php.ini file - it is not in the wrong directory. so all fixes listed so far will not work. This is definitly a showstopper for many. I think that setting cgi.force_redirect = 0 is somehow resulting in the PWS not knowing where to look for the PHP.exe or something like that but what do I know. A documentation FIX that works would be nice. Also there seems to be different fixes for IIS and PWS and the docs are not clear which fix for which. Previous Comments: ------------------------------------------------------------------------ [2002-12-07 06:53:50] [EMAIL PROTECTED] Hello shelley win2000 + iis + php I had the same problem with header("Location....) redirects. And I don't have a solution only have one ugly code to do the same... echo "<script language='javascript'> document.location.href=$url</script>"; I hope change this code on the future, when somebody will have a solution. DJF ------------------------------------------------------------------------ [2002-11-10 04:07:00] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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 :) ------------------------------------------------------------------------ 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