Re: header("Location: page.php") not redirecting

From: Date: Mon, 01 Dec 2003 23:17:04 +0000
Subject: Re: header("Location: page.php") not redirecting
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-171516@lists.php.net to get a copy of this message
* Thus wrote rogue (rogue@mail.rightcode.net): > Okay. I reworked the code a bit, but still no go. > > Here is what I have: > > $redirect = "http://" . > $_SERVER['HTTP_HOST'] . > "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar"; > error_reporting(E_ALL); > echo "Location: $redirect"; > header("Location: $redirect"); hmm... - add a ini_set('display_errors', true); - check your logs, apache and php That code is throwing an warning somewhere. Curt -- If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP

« previous php.general (#171516) next »