Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The following codes: header("WW

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
The following codes:

header(" Basic realm=\" *** Protected Area\"");
header("HTTP/1.1 401 Unauthorized");

//fail text
print(&quot;This page is a protected page.<br>\n&quot;);

Under Linux+apache+php, it will trigger the login window,
but under windows+apache+php will generate internal server error

Anyboby know why? And any way to fix that??
 
I am running Windows + Apache 1.3.22 + PHP 4.0.6 and I am using those headers in several scripts without generating any error. Have you added mod_auth in httpd.conf? //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top