[pmwiki-devel] [Fwd: Re: Getting URL]

dso dso at moosoft.com
Tue Dec 5 12:49:39 CST 2006


Hey, no problem.  We solved it together.  All three of us figuring it
out.  Good work all around!

Daniel

Craige Leeder wrote:
> 
> 
> ------------------------------------------------------------------------
> 
> Subject:
> Re: [pmwiki-devel] Getting URL
> From:
> Craige Leeder <craige at internetadvisor.ca>
> Date:
> Tue, 05 Dec 2006 13:18:27 -0500
> To:
> The Editor <editor at fast.st>
> 
> To:
> The Editor <editor at fast.st>
> 
> 
> The Editor wrote:
> 
>> 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'];
>>
> Oh, okay. Sorry dso, it seems you were correct. I was under the
> impresrsion that request_uri held the location of the script that the
> user has called (ie: site.com/script.php). I just did a quick php.net
> search though, as it is not every day I need to use such a code sniplet.
> 
> Once again, my apologies
> 
> - Craige
> -- InternetAdvisor.ca
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel




More information about the pmwiki-devel mailing list