Referer?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
eddy05
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Mar 04, 2003 6:46 pm
Location: Singapore
Contact:

Referer?

Postby eddy05 » Fri Jun 06, 2003 2:27 am

How can I check the http referer? i tried $_SERVER["HTTP_REFERER"] but can't. There's no value. Please help. I'm using PHP 4.3.1

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Fri Jun 06, 2003 4:05 am

$_SERVER['HTTP_REFERER'] = works for me

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Fri Jun 06, 2003 5:29 am

are you using apache or IIS. cause I know IIS does not support alot of the $_SERVER variables.

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Fri Jun 06, 2003 6:00 am

i tested $_SERVER['HTTP_REFERER'] on my IIS box

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Referer?

Postby WiZARD » Fri Jun 06, 2003 6:22 am

eddy05 wrote:How can I check the http referer? i tried $_SERVER["HTTP_REFERER"] but can't. There's no value. Please help. I'm using PHP 4.3.1

try this:
$GLOBALS["HTTP_REFERER"]


Return to “PHP coding => General”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests