hi

having a little problem with apache and its "customizable error messages"

i have a basic authentication system here:
##in file called deletepost.php i have:##
<?php
header("www-authenticate: basic realm='delete post login'");
header("http/1.0 401 Unauthorized");//assuming this line is 
//for logins that are invalid???
echo "error"; //for people who hit cancel (i want a 
//customized apache header error for this though)
exit;
#end#
works fine untill someone types in the wrong username/pwd and then all i get is a 
blank web page. actually i dont even get a blank web page because all ie or netscape 
does is sit there and do nothing. its like the server (apache) doesnt know what a 
"http/1.0 401 Unauthorized" header even is supposed to be or even look like or 
something. in the php 3/4 docs it says to generate a script as a header error document 
force it to create the error message first:
###in error file:/errors/unauthorized.php###
<?php
header("http/1.0 401 Unauthorized");
?>
html for error web page here...
#end#

now in apache httpd.conf file i was told to do this:

ErrorDocument 401 /errors/unauthorized.php
#end#

after i do all of this i still cant get anything to show up on the web page if someone 
puts in the wrong username/pwd and i want to change the error message for cancle on 
the login form to a header error message... 

the only problem i can see with this is that the actuall working web server might not 
be able to use my custom error messages and stuff.. but does anybody know how to fix 
my problem here?

tnx for help if can give...

Reply via email to