Re: Seeking Comments - Regarding header()

From: Date: Fri, 21 Jun 2002 08:50:01 +0000
Subject: Re: Seeking Comments - Regarding header()
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-85434@lists.php.net to get a copy of this message
The HTTP/1.1 spec says that anything sent as a location header must be an absolute URI. Apache will sometimes segfault if you don't. If a specific redirect() function were to be implemented, would it be worth examining the URL passed into the function to see if it is absolute (e.g. if it contains '://') and if it isn't, making it absolute by adding $_SEVER['HTTP_HOST']? --Mike ----- Original Message ----- From: "Marcus Börger" <marcus.boerger@t-online.de> To: <php-dev@lists.php.net> Cc: "Chris Shiflett" <shiflett@php.net>; "rasmus Lerdorf" <rasmus@php.net> Sent: Friday, June 21, 2002 9:42 AM Subject: Re: [PHP-DEV] Seeking Comments - Regarding header() What about a new function say redirect(url, response) that also handles sessions automatically (you have to add the session id to the url to keep it when coolies are disabled by user?

« previous php.dev (#85434) next »