Re: header() refresh vs location

From: Date: Tue, 14 Oct 2003 16:19:18 +0000
Subject: Re: header() refresh vs location
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166106@lists.php.net to get a copy of this message
In this example, index.php would be a violation i think. however you don't need to provide an absolute URL, you could provide / or ever /index.php I say this because the header specifying the Host had already been sent. so you could do Location: Host + Relative_URL or Location: Relative_URL since the browser already knows what Host you are connected to. I could be totally wrong, just my experience in the path month or so. Cheers! Matt On Tue, 2003-10-14 at 15:08, Chris Shiflett wrote: > --- Chris Hubbard <chris@wildcharacters.com> wrote: > > header('Location: index.php'); > > The Location header requires an absolute URL. This example demonstrates a > violation of the specification and can have unknown results. > > Chris > > ===== > My Blog > http://shiflett.org/ > HTTP Developer's Handbook > http://httphandbook.org/ > RAMP Training Courses > http://www.nyphp.org/ramp

« previous php.general (#166106) next »