[pmwiki-devel] Getting URL

Craige Leeder craige at internetadvisor.ca
Mon Dec 4 15:48:58 CST 2006


The Editor wrote:

>Thanks!  That helps...  But it's only the path to the script, not the
>domain or anything.  I'd like to be able to dynamically reconstruct
>the full url without having to set it in a config file.
>
$fullurl = $_SERVER['REQUEST_URI']  .  $_SERVER['QUERY_STRING'];

$fullurl would now contain your full url.

- Craige
-- InternetAdvisor.ca



More information about the pmwiki-devel mailing list