Reply to Re: [PHP] Retrieve URL of website

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация