You are here: Re: how to get full URL with domain page and parameters « PHP Language « IT news, forums, messages
Re: how to get full URL with domain page and parameters

Posted by ZeldorBlat on 04/10/07 13:22

On Apr 10, 8:03 am, "Peter" <Will_Bounce_So_Use_My_First_N...@Smart-
Projects.net> wrote:
> Hi,
>
> What would be the variable to get the *complete* URL,
> domain, page and variables that are passed to it ?

Domain: $_SERVER['HTTP_HOST']
Page: $_SERVER['REQUEST_URI']
Variables: $_SERVER['QUERY_STRING']

So:

$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '?' .
$_SERVER['QUERY_STRING']

 

Navigation:

[Reply to this 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

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