Re: header function, I'm stumped

From: Date: Wed, 10 Dec 2003 00:00:36 +0000
Subject: Re: header function, I'm stumped
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172307@lists.php.net to get a copy of this message
--- Kelly Hallman <khallman@ultrafancy.com> wrote: > On Tue, 2 Dec 2003, Chris Hubbard wrote: > > All, dealing with header("location:...") again. and trying to > > understand what's happening. I've got the following code: > > > > header("Location:http://www.mysite.com/cp/ad/ad_details.php?id=". > $id); > > I'm kinda surprised I didn't see this mentioned.. Have you tried: > header("Location: http://url.redirect/\n\n"); exit; > // ? You should definitely not try to add your own newlines to the end of a header like that. PHP might be able to gracefully handle it, but I wouldn't rely on it. As for the original question, put a space after your colon, and let us know how that works. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#172307) next »