|
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]
|