Mailinglisten-Archive |
Norbert Dörr wrote: > Header("WWW-Authenticate: Basic realm=\"MyName\""); > Header("HTTP/1.0 401 Unauthorized"); > Error.log: C:\Apache\Apache.exe: [Fri Nov 19 18:31:48 1999] [error] [client > 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 > Unauthorized: c:/apache/cgi-bin/php.exe Du verwendest einen Windows-Rechner, also ein CGI-PHP. Dort muß es laut CGI-Standard heißen: Header("WWW-Authenticate: Basic realm=\"MyName\""); Header("Status: 401 Unauthorized"); Kristian -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!)
php::bar PHP Wiki - Listenarchive