Reply to Re: URL of Referring html Document

Your name:

Reply:


Posted by NC on 11/12/42 11:47

Peter wrote:
>
> I am using this code to retrieve the current URL:
>
> function selfURL() {
....
> }
>
> which returns the URL of the current PHP script.

Why? What's wrong with $_SERVER['SCRIPT_URI']?

> But, I would like it to return the URL of the html page
> that preceeded this script.

That would be $_SERVER['HTTP_REFERER'].

Cheers,
NC

[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

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