Troobleshooting a problem with $HTTP_REFERRER

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 28
Joined: Fri Jan 03, 2003 4:00 pm

Troobleshooting a problem with $HTTP_REFERRER

Postby Tony121076 » Mon Feb 17, 2003 3:42 pm

I'm trying to troobleshoot a problem, but I can't tell if the problem is with my script or the way I'm trying to call it. I need to know...

If you are at an address like , and then you go to your php script by typing the path into the location bar, will $HTTP_REFERRER return the google address? Or do you need to actually click a link on the google page leading to your script?

If you need to actually click a link, then is there any way to troobleshoot a script like this if you don't have any pages on google?

Any advice about any of this would be MUCH appreciated. Thanks in advance.

New php-forum User
New php-forum User
Posts: 3
Joined: Sun Dec 22, 2002 6:05 pm

Postby SimonEast » Mon Feb 17, 2003 8:03 pm

I'm pretty sure typing in an address doesn't send the REFERER header. You'll need to create another page containing a link to your first page.

...Or you could maybe use telnet. See here:


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 3 guests