RE: [PHP-ES] Error de PHP

From: Date: Wed, 25 Oct 2000 16:06:30 +0000
Subject: RE: [PHP-ES] Error de PHP
Groups: php.general.es 
Request: Send a blank email to general-es+get-2696@lists.php.net to get a copy of this message
a mi me pasa lo mismo porque lo tengo instalado como cgi, como hago para ponerlo como modulo de apache en windows con mysql -----Mensaje original----- De: Angel Fenoy [mailto:afenoy@wol.es] Enviado el: Miércoles, 25 de Octubre de 2000 01:02 p.m. Para: lista@phpes.com Asunto: Re: [PHP-ES] Error de PHP 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 > --------------------------------------------------------------------- Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com

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