note 59180 added to function.header

From: Date: Mon, 28 Nov 2005 18:42:21 +0000
Subject: note 59180 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-99258@lists.php.net to get a copy of this message
For anyone with redirection problems, I found that the following call was giving the CGI error on my IIS server. header("Location: ".$_SERVER['PHP_SELF']); //problem here exit; //good practice for IIS (never found it necessary for *nix) In switching the code to I was able to get rid of the issue alltogather header("Location: ".$_SERVER['HTTP_REFERER']); //fix exit; Hope this helps someone out in the future -Ryan ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59180 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59180&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59180&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59180&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59180&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59180&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59180&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59180&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59180&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99258) next »