November 10th, 2000, 10:30 AM
Join Date: Nov 2000
Time spent in forums: < 1 sec
Reputation Power: 0
Just wondering what platform you had installed apache and PHP under, becuase I had a similar problem. The header function dosen't seem to work the way that you have it written out under the windows environment, but I've found a statement that seems to work instead ...
Header ( "WWW-authenticate: basic realm=Restricted Area");
Header ( "Status: 401 Unauthorized");
echo "<meta http-equiv="refresh"
I really don't know about setting up custom error pages though ...
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by devCisk:
i just installed apache 1.3.9 with php4 and was wondering how i can make it so that header function works... Well like the following gives me a server misconfiguration error:
header('WWW-Authenticate: Basic realm="Top 10 Login"');
header('HTTP/1.0 401 Unauthorized');
can anyone PLEASE URL tell me where i can enable or tweak apahce so that the previous code would work..
also.. how i can setup custom error pages like 500 and stuff
thanks in advance!