simple header question
Posted: Tue Oct 25, 2005 7:15 am
i want when a person tries to view a directory they get a 401 Unauthorized so i do this
and i save it as index.php of course. sadly it just displays a blank page and not the awesome 401 page. this is probably becuase of some server config but i don't know how to set that up.
Code: Select all
<?
header("HTTP/1.0 401 Unauthorized");
?>