[Phplogcon-dev] trouble with IIS

Brian Shea bgshea at gmail.com
Wed Dec 14 18:15:35 CET 2005


Okay, I was trying to figure out what QUERY_STRING was for because it seemed
like PHP was putting ig all into the [REQUEST_URI].

I think we might be able to look at the server type, if IIS do one thing,
for APACHE do another.

Thanks, I'll fix that up when i get home and post a 1.2.6b.


On 12/14/05, Michael Meckelein <mmeckelein at hq.adiscon.com> wrote:
>
> 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
> _______________________________________________
> Phplogcon-dev mailing list
> http://lists.adiscon.net/mailman/listinfo/phplogcon-dev
>



More information about the Phplogcon-dev mailing list