php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #2305 'HTTP authentication with PHP' dosn't work
Submitted: 1999-09-15 13:27 UTC Modified: 2000-07-03 19:17 UTC
From: schmidt4 at rz dot uni-greifswald dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.12 OS: WinNT4; SP5; Apache 1.3.9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: schmidt4 at rz dot uni-greifswald dot de
New email:
PHP Version: OS:

 

 [1999-09-15 13:27 UTC] schmidt4 at rz dot uni-greifswald dot de
Hi all,

I can't get the mentioned example work on my system... every time I start the .phtml
I get an 'error 500 - internal server error' from my Apache server. Even the shortest
program:

<?
header("WWW-Authenticate: Basic realm=\"Test\"");
header("HTTP/1.1 401 Authorization Required");
?>

results in an 'error 500'. There are no newlines or spaces in the file, only the
4 lines from above.

Thanks,
Jan Schmidt

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-03 19:17 UTC] rasmus at cvs dot php dot net
As documented, HTTP Auth from PHP does not work with the CGI version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 23:01:27 2024 UTC