Re: Problem...header already sent by

From: Date: Tue, 05 Feb 2002 06:44:49 +0000
Subject: Re: Problem...header already sent by
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-83544@lists.php.net to get a copy of this message
Okay, I deleted the other stuff and just put this code and I get this from my interpreter? Is this a setting problem? Thanks, Peter <?php Header ("WWW-authenticate: Basic realm=\"Private\""); Header ("HTTP/1.0 401 Unauthorized"); echo "Unauthorized"; exit; ?> [Mon Feb 04 22:36:30 2002] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: /apache/php/php.exe "Niklas lampén" <niklas.lists@publico.fi> wrote in message news:007701c1ae09$1bde80b0$ba93c5c3@Niklas... > There can't be _anything_ before headers. Even a single space and/or > linebreak causes an error. > > > Niklas

« previous php.general (#83544) next »