Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Referer?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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
User avatar
eddy05
New php-forum User
New php-forum User
 
Posts: 10
Joined: Tue Mar 04, 2003 6:46 pm
Location: Singapore

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

$_SERVER['HTTP_REFERER'] = works for me
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

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.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

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

i tested $_SERVER['HTTP_REFERER'] on my IIS box
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

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"]
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.