Re: Retrieve URL of website

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

 



HI, 

 Look for $_SERVER['REQUEST_URI'];

<?php 

print $_SERVER['REQUEST_URI'];

?>

But Dear first you should search the documentation , it is very easy
to notice if you can use phpinfo();


zareef ahmed 


On Apr 2, 2005 8:12 AM, HarryG <harry1980@xxxxxxxxx> wrote:
> 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
> 


-- 
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net

-- 
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