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

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

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.

Any idea on what may be causing it?

BTW, for the referer, I use $_SERVER['HTTP_REFERER'] and it works fine
both on my PC and the server.

Thank you,
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

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