You are here: Re: QUESTION: $_SERVER['REQUEST_URI']; « All PHP « IT news, forums, messages
Re: QUESTION: $_SERVER['REQUEST_URI'];

Posted by Joaquim Amado Lopes on 10/11/27 11:59

Greetings.

On Sat, 30 Sep 2006 01:56:49 +0100, Joaquim Amado Lopes
<jalopes@jalopes.net.> wrote:

>Greetings.
>
>I want to implement a feature on a site, registering the date-time,
>referer and page visited for every pageview.
>
>As the pages are built with a script, the parameters passed determine
>what is to be displayed, I need to register the whole URL requested,
>like http://domain/page.php?var1=a
>
>I tested $_SERVER['REQUEST_URI']; and it worked fine on my PC. But,
>on the server, it always returns nothing.
>
Just solved the problem with

$url = $_SERVER["PHP_SELF"]."?".$_SERVER["QUERY_STRING"];

Sorry for wasting your time.

Cheers,
Joaquim Amado Lopes

 

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

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