[pmwiki-devel] Getting URL

The Editor editor at fast.st
Mon Dec 4 18:46:06 CST 2006


On 12/4/06, dso <dso at moosoft.com> wrote:
> That would be
> $fullurl = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']  .
> $_SERVER['QUERY_STRING'];
>
> Wouldn't it?
>
> Daniel


It seems the QUERY_STRING is included in the REQUEST_URI so this gives
a duplicate of that portion.  Also, you do need to add the http://, so
this works if anyone is interested:

$fullurl = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];

Cheers,
Caveman



More information about the pmwiki-devel mailing list