other php scripts work and this also work on XAMP. but this doesnt Work on WAMP5.
heres a short snippet form the code:
function haslogin($check_login=false) {
if (!isset($_SERVER['PHP_AUTH_USER']))
{
if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION']))
{
$_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
}
if (isset($_SERVER['HTTP_AUTHORIZATION']) && strtolower(substr($_SERVER['HTTP_AUTHORIZATION'] , 0 , 6)) == "basic "

{
$arrays = explode(':' , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
if (count($arrays) > 1)
{
$_SERVER['PHP_AUTH_USER'] = $arrays[0];
$_SERVER['PHP_AUTH_PW'] = $arrays[1];
}
}
}
when i access the my website. the page doesnt not diplay the website but it shows the whole php code.. and i check php. php is installed.
any work arround?
edit: screenshot : [
img512.imageshack.us]
Post Edited (02-28-07 18:39)