Posted by Karl Groves on 06/09/06 16:13
Henrik Hansen <spam@fsck.dk> wrote in news:87hd2ulrk4.fsf@fsck.dk:
> "the DtTvB" <mechakoopa@gmail.com> writes:
>
>> Henrik Hansen wrote:
>>> I think you want $_SERVER["PHP_SELF"] . $_SERVER["QUERY_STRING"]
>>
>> I use $_SERVER["PHP_SELF"] . ($_SERVER["QUERY_STRING"] != '' ? '?' .
>> $_SERVER["QUERY_STRING"] : '')
>>
>
> Right, thats probably more correct, if the query string is empty at
> times ..
>
Is the above method better or worse than $_SERVER['REQUEST_URI'];
--
Karl Groves
www.karlcore.com
[Back to original message]
|