Re: header redirect not working

From: Date: Fri, 12 Aug 2005 23:50:12 +0000
Subject: Re: header redirect not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220542@lists.php.net to get a copy of this message
Pablo Gosse wrote:
[snip] $conn->Execute("delete from cms_events where e_id = {$fd['e_id']}") or $this->CMS_error(2,$this->mod_name,$query,$conn->ErrorMsg()); header("Location:{$this->CMS_base_path}mods/events_manager/cms.events_ma nager.dsp.php"); [snip] Can anyone think of any reason why the above code, just those two lines, would redirect correctly in one environment, yet simply redirect to the currently existing page in another?
Can you place the following code just before the header() line, and post what it prints? die($this->CMS_base_path); In other words, tell us what the $this->CMS_base_path field contains when that line is executed. Jasper

« previous php.general (#220542) next »