[Xitami] Xitami and PHP
John Torrance
j.torrance at earthlink.net
Thu Nov 3 02:02:23 CET 2005
I run a simple little website and I want to grab the referer and store that in a database. Everything I've programmed has worked (I've been in databases for 20 years, I am relatively new to PHP however). Anyway, someone links to my site from a page with a url like:
http://it.slashdot.org/article.pl?sid=05/08/21/1946254
I see that exact URL in my web log as the referrer. If, I check the HTTP_REFERER in PHP, it always shows as
http://it.slashdot.org/article.pl
Everything past the ? is stripped. In javascript, document.referrer is the comlpete URL. So, the browser appears to have access to the complete URL, the web server does too, but for some reason PHP does not. Leads me to believe it's a config error, but I'll be darned if I can find it. Any ideas?
I have used PHPBB etc in the past with no problems. I am not sure if this problem is in PHP or Xitami, but I thought I'd ask here.
It's a Xitami 2.4d9, Win2K, PHP 4.3.1 if I recall correctly.
Any help is appreciated.
John Torrance
More information about the Xitami
mailing list