Re: Error de PHP

From: Date: Wed, 25 Oct 2000 16:01:33 +0000
Subject: Re: Error de PHP
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-2694@lists.php.net to get a copy of this message
Me temo que estás ejecutando PHP como cgi. Si es así, no te va a funcionar. Mírate el capítulo correspondiente del manual: http://php.net/manual/features.http-auth.php 'The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI version' Saludos. Àngel > Lucas Florio escribió: > > Estuve probando unos ejemplos de un tutorial (este ejemplo) > > <?php > > if (!isset($PHP_AUTH_USER)) { > // If empty send header causing dialog box to appear > header('WWW-Authenticate: Basic realm="My Private Stuff"'); > header('HTTP/1.0 401 Unauthorized'); > echo 'Autorizacion requerida'; > } > else { > echo " > <P>You have entered this username: $PHP_AUTH_USER<br> > You have entered this password: $PHP_AUTH_PW,br> > the Authorization type is: $PHP_AUTH_TYPE</P> > "; > } > > ?> > > Y el apache me tiraba este error: > Internal Server Error.... > [Wed Oct 25 12:01:58 2000] [error] [client 10.0.0.3] malformed header > from script. Bad header=HTTP/1.0 401 Unauthorized: > c:/apache/php4/php.exe > > No se si alguien me puede ayudar, pero gracias igualmente. > > Lucas Florio > AnyWare - Soporte Técnico > labs@anyware.com.ar >

« previous php.general.es (#2694) next »