notooth Posted May 27, 2005 Posted May 27, 2005 Hi ,Can anyone tell me if there is a function that returns the domain name of the referer?
notooth Posted May 27, 2005 Author Posted May 27, 2005 Can anyone help me? I got nothing for $HTTP_REFERER .
matrix0978 Posted May 28, 2005 Posted May 28, 2005 thats should work for PHP. make it so it logs into a .txt file and it should tell you the domain in which the referer was from
notooth Posted May 29, 2005 Author Posted May 29, 2005 That works on my local server, but does not work on my web server .
notooth Posted May 29, 2005 Author Posted May 29, 2005 Of course, it does. I am making a web page with PHP and got problem with this.
notooth Posted May 30, 2005 Author Posted May 30, 2005 use $_SERVER['HTTP_REFERER']<{POST_SNAPBACK}>That doesn't work either .
eXPerience-XP Posted May 30, 2005 Posted May 30, 2005 do any of the other $_SERVER variables work? also if you dont have a referer then it will show up with nothing
notooth Posted May 31, 2005 Author Posted May 31, 2005 I figured it out. The web server get nothing for the $HTTP_REFERER if the referfer is my local server. When I use another website as the referer, it works fine. Thank you for your replies .
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now