Error de PHP
| From: | Lucas Florio | Date: | Wed, 25 Oct 2000 15:04:58 +0000 |
| Subject: | Error de PHP | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-2684@lists.php.net to get a copy of this message | ||
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