Problem with WAMP5
Posted by: pervertd (---.org)
Date: February 28, 2007 06:37PM

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 "winking smiley
{
$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)

Options: ReplyQuote
Re: Problem with WAMP5
Posted by: CyberSpatium (71.237.217.---)
Date: March 03, 2007 02:44PM

make sure you are not using short style php tags, use full php tags.

use:
<?php

not:
<?


CyberSpatium
----------------------------
Wamp English Forum Admin

Options: ReplyQuote


Sorry, only registered users may post in this forum.