note 37776 added to function.header

From: Date: Wed, 26 Nov 2003 15:03:05 +0000
Subject: note 37776 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-61001@lists.php.net to get a copy of this message
Just a heads up when using header("Location: http://www.something.net/") I currently develop on a Windows machine, and the live server is on a *nix box. If I code some kind of if (!$email_addy) { header("Location: http://www.something.net/"); } it works fine on the Windows machine, but I *have* to put exit; after the header command on the *nix box... either that or I have to enclose the rest of the page (which can be quite lengthy) into the } else { of the if() block. You might want to check it out if you're having similar problems. ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37776 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37776&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37776&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61001) next »