|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-02 08:06 UTC] sadun at isikun dot org
Description:
------------
;changes in php.ini
error_reporting = E_ALL & ~E_NOTICE
register_globals = On
include_path = ".;W:\wwwroot\includes"
extension_dir = "W:\php\extensions"
cgi.force_redirect = 0
cgi.redirect_status_env = ENV_VAR_NAME
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1
upload_tmp_dir = "W:\php\phpupload"
extension=php_mbstring.dll
extension=php_imap.dll
extension=php_gd2.dll
session.save_path = "W:\php\phpsession"
session.auto_start = 1
Reproduce code:
---------------
Header("Location: Http://".$GLOBALS["HTTP_HOST"]."/main.php?");
// i checked URL is correct
Expected result:
----------------
redirect to url
Actual result:
--------------
CGI Error
The specified CGI application misbehaved by not returning a complete set of, HTTP headers.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 11:00:02 2025 UTC |
;cgi.redirect_status_env = ENV_VAR_NAME no changes header("Location: URL_FOO"); can't be send in 4.3.2 IIS6.0 with CGII FOUND THE PROBLEM IF YOU REDIRECT USER TO SAME PHP FILE IT MAKES AN ERROR LOOP. let's say i execute a code at main.php and if i redirect user to main.php you can see in the headers that it makes a loop with errors at headers with "INET_E_REDIRECT_FAILED" but you can redirect anywhere else except same file... CODE --------------------- <? header("Location: http://webgroup.isikun.edu.tr/arge/header.php"); ?> ERROR AT HEADERS --------------------- 20:15:48.279 0.109 * GET INET_E_REDIRECT_FAILED text/html http://webgroup.isikun.edu.tr/arge/header.php