Re: Extrange behavior with Header('Location')

From: Date: Tue, 21 Sep 2004 16:57:31 +0000
Subject: Re: Extrange behavior with Header('Location')
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-197436@lists.php.net to get a copy of this message
> Just, the result returned by the fuinction is mainly used to creatre > links in the pages, only in some very special cases will be used with > the header function. Just I use the & entity in links because I > want all my pages being validated by the W3C validator service. As well as that, you should send absolute URIs when you're using headers, so instead of: header('Location: ' . $url); you should use header('Location: http://www.mysite.com' . $url); if you want to adhere to the HTTP standard. Paul

« previous php.general (#197436) next »