note 91259 added to function.header

From: Date: Tue, 02 Jun 2009 14:32:37 +0000
Subject: note 91259 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-156291@lists.php.net to get a copy of this message
After spending some time I figured out calling "exit" after header("Location:page.php"); is pretty handy. In PHP 4.4 header("Location:page.php"); combined with header_sent(); doesn't give significant information for why header("Location:page.php"); is not working. But calling exit right after header call forcefully made header("Location:page.php") to work. ---- Server IP: 209.41.74.194 Probable Submitter: 69.11.232.26 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/91259 Del: integrated -- https://master.php.net/note/delete/91259/integrated Del: useless -- https://master.php.net/note/delete/91259/useless Del: bad code -- https://master.php.net/note/delete/91259/bad+code Del: spam -- https://master.php.net/note/delete/91259/spam Del: non-english -- https://master.php.net/note/delete/91259/non-english Del: in docs -- https://master.php.net/note/delete/91259/in+docs Del: other reasons-- https://master.php.net/note/delete/91259 Reject -- https://master.php.net/note/reject/91259 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156291) next »