https://www.icyphoenix.com/viewtopic.php?f=35&t=5646&p=37864#p37864
-----------------------------------
Mighty Gorgon
Thu 02 Apr, 2009 13:09

Re: [SOLVED]   Vars To Switch Header Location Wanted If Possible
-----------------------------------
Of course it is possible.

You just need to play with globals php vars and some "cool" PHP functions:

http://it.php.net/manual/en/reserved.variables.server.php
http://it.php.net/manual/en/reserved.variables.environment.php
http://it.php.net/manual/en/function.getenv.php
http://it.php.net/manual/en/function.pathinfo.php
http://it.php.net/manual/en/function.parse-url.php


For example this var:
[codeblock]$_SERVER['QUERY_STRING'][/codeblock]

contains only the QUERY (the part after the question mark in URL).


I hope this helps.

:mri:


