hi...
ich habe folgendes script:
<html>
<body>
<?
if(!isset($PHP_AUTH_USER)){
header("WWW-Authenticate: Basic realm="My Realm"");
header("HTTP/1.0 401 Unauthorized");
echo "Text to send if user hits Cancel button\n";
phpinfo();
exit;
} else {
echo "Hello $PHP_AUTH_USER.<P>";
echo "You entered $PHP_AUTH_PW as your password.<P>";
}
?>
</body>
</html>
beim ausführen lokal geht es aber beim provider nicht...
folgende fehlermeldung:
Warning: Cannot add header information - headers already sent by (output started at /mnt/be2/07/539/00000012/htdocs/new.php:3) in /mnt/be2/07/539/00000012/htdocs/new.php on line 5
Warning: Cannot add header information - headers already sent by (output started at /mnt/be2/07/539/00000012/htdocs/new.php:3) in /mnt/be2/07/539/00000012/htdocs/new.php on line 6
wie kann ich den fehler beheben??