<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');
printf('Authorization required...');
can anyone PLEASE 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!
Cisk
devcisk@ev1.net[/quote]
Sorry ... I am not sure what's meanning in your first questions!!
and the 2nd Question could be solved by changing the following config file..
// your_httpd_root_dir/conf/httpd.conf
# Customizable error response (Apache style)
# these come in three flavors
#
# 1) plain text
#ErrorDocument 500 "The server made a boo boo.
# n.b. the (") marks it as text, it does not get output
#
# 2) local redirects
#ErrorDocument 404 /missing.html
# to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# N.B.: You can redirect to a script or a document using server-side-includes.
#
# 3) external redirects
#ErrorDocument 402
http://some.other_server.com/subscription_info.html
# N.B.: Many of the environment variables associated with the original
# request will *not* be available to such a script.
#
# The following directives modify normal HTTP response behavior.
# The first directive disables keepalive for Netscape 2.x and browsers that
# spoof it. There are known problems with these browser implementations.
# The second directive is for Microsoft Internet Explorer 4.0b2
# which has a broken HTTP/1.1 implementation and does not properly
# support keepalive when it is used on 301 or 302 (redirect) responses.
#
Take the # away.. And suit it to your will..
Sorry for my English..
------------------
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Ask not what your friends can do for you....
ask what you can do for your friends.[/quote]