[pmwiki-devel] Getting URL

dso dso at moosoft.com
Mon Dec 4 16:10:27 CST 2006


That would be
$fullurl = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']  .
$_SERVER['QUERY_STRING'];

Wouldn't it?

Daniel

Craige Leeder wrote:
> dso wrote:
> 
>> err, that should be $_SERVER["SERVER_NAME"] not REMOTE_HOST
>>
>> Daniel
>>
>> dso wrote:
>>  
>>
>>> What about $_SERVER["REMOTE_HOST"] and $_SERVER["REQUEST_URI"] and then
>>> you'd need to add http:// and it should be a full url.  I think :)
>>>
> 
> I think he means he has:
> http://www.domain.com/path/to/script.php
> 
> and he wants the querystring aswell. Maybe I'm wrong though.
> 
> - Craige
> -- InternetAdvisor.ca





More information about the pmwiki-devel mailing list