You are here: Re: calling url. « PHP Programming Language « IT news, forums, messages
Re: calling url.

Posted by Andy Jeffries on 05/08/06 18:19

On Mon, 08 May 2006 09:52:36 -0500, Ron Croonenberg wrote:

> Hello,
>
> Is it possible, with php, to figure out what the "calling url" is ?
>
> Let's say I have a track.html (with some php code) and if someone clicks
> on a link to track.html I want to see the url where that visitor came
> from.
>
> can that be done ?

Not 100% reliably (it's up to the browser to send it) but check out
$_SERVER["HTTP_REFERER"]

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

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

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