justuptime.com - monitor your servers & websites

can not get referer

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 7 posts

Joined: Mar 2004

while throuwing a dump on $_SERVER has, in PHP, I can not get some fields including HTTP_REFERER. Instead I get some:

HTTP________ => ~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTTP________________ => ~~~~~ ~~~~~~~

any idea what problem is?

I am trying to make a stats script and this is mandatory? Should I try using some client side solution with javascript instead?

Greg K's picture
Moderator

He has: 1,606 posts

Joined: Nov 2003

What results are you getting when you do something like the following:

<pre><tt><? print_r($_SERVER); ?></tt></pre>'

I'm trying to figure out what will give you an output of "SERVER________" followed by a bunch of ~'s

I could understand if it was just blank, but having ~'s in it seems weird.

Also, check your antivirus software, some will block you referer information by default when installed. Maybe this is what is messing it up.

-Greg

[This space intentionally left blank]

Cool Geek Supplies: www.ThinkGeek.com

Abhishek Reddy's picture
Moderator

He has: 3,284 posts

Joined: Jul 2001

Try phpinfo() and compare the output. Smiling