Re: Re: Retrieve URL of website

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



var_dump($_SERVER);

should provide you with sufficient info to piece together what you need.



On Fri, April 1, 2005 9:36 pm, HarryG said:
> Thanks guys.
>
> "HarryG" <harry1980@xxxxxxxxx> wrote in message
> news:20050402024632.11051.qmail@xxxxxxxxxxxxxxxx
> Hi,
>
> I want to retrieve the complete url in my php script. How can I do this?
>
> eg. www.mysite.com/mydirectory/mypage.php
>
> Result should either be www.mysite.com/mydirectory/mypage.php or
> /mydirectory/mypage.php
>
> Thanks in advance
> HarryG
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux