[Phplogcon-dev] trouble with IIS

Michael Meckelein mmeckelein at hq.adiscon.com
Wed Dec 14 17:42:54 CET 2005


Brian,

I just want to test phplogcon_1.2.6a_bgs with IIS. It run into trouble
with $_SERVER['REQUEST_URI'], because it is an apache environment
variable.

I have to add a patch in all the files using $_SERVER['REQUEST_URI']:

$_SERVER['REQUEST_URI'] = (isset($_SERVER['REQUEST_URI']) ?
$_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);
 
// Append the query string if it exists and isn't null
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']))
{
   $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
}

It seems to work but I think it is more or less a dirty hack. I haven't
tested all out. I will spend some more time tomorrow testing php in a
windows/iis environment.

Michael



More information about the Phplogcon-dev mailing list