note 37776 deleted from function.header by didou

From: Date: Wed, 26 Nov 2003 15:04:14 +0000
Subject: note 37776 deleted from function.header by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61002@lists.php.net to get a copy of this message
Note Submitter: no_thanks@nothing.com ---- 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.

« previous php.notes (#61002) next »