Re: Redirecting using headers: CGI application misbehaved

From: Date: Wed, 27 Dec 2000 20:47:03 +0000
Subject: Re: Redirecting using headers: CGI application misbehaved
Groups: php.general 
Request: Send a blank email to php-general+get-32007@lists.php.net to get a copy of this message
Make sure there is no white space or blank lines (outside of the PHP code) in your script before you send the header() call. Or maybe try header("Location: http://etc.etc/file.php3\n\n"); but I am not sure the newlines are needed. Michael On Wednesday, December 27, 2000, at 03:42 PM, Diego Fulgueira wrote: > Hi everyone. > > I am trying to redirect inside an include file using: > > header("Location: http://etc.etc/file.php3"); > > But i get the following error sent by IIS 5.0: > > "The specified CGI application misbehaved by not returning a complete set of > HTTP headers." > > I already checked that all my included files don't have any carriage returns > or spaces before or after the php-code enclosing tags. > > The error only happens the FIRST TIME i load the page!! After clicking > refresh on my browser (either IE or Netscape) it is displayed ok. Then, the > error can only be reproduced after reloding the previous page and clicking > the link again. Weird, isn't it? > > I am desperate. Does anyone have a clue, please?? > Thanks in advance. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#32007) next »