Posted by Zareef Ahmed on 10/21/75 11:12
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@gmail.com> 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
[Back to original message]
|