Re: authorization

From: Date: Thu, 07 Dec 2000 23:58:51 +0000
Subject: Re: authorization
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29247@lists.php.net to get a copy of this message
It's the whitespace *before* the <? that matters, not after. <? function auth() . . . should be fine. ----- Original Message ----- From: Robert Ludvik <robert.ludvik@zd-lj.si> Newsgroups: php.general Sent: Thursday, December 07, 2000 12:58 PM Subject: [PHP] authorization > Alan thnx for help, it works :) > and for anybody else around, who would have problem with this :> > it MUST be like this: > > <?function auth() { > Header('WWW-Authenticate: Basic realm="Samo za poobla¹èene"'); > Header('HTTP/1.0 401 Unauthorized'); > exit; > } > > = no white space at all! > > -- > 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 (#29247) next »