notooth Posted May 27, 2005 Share Posted May 27, 2005 Hi ,Can anyone tell me if there is a function that returns the domain name of the referer? Link to comment Share on other sites More sharing options...
notooth Posted May 27, 2005 Author Share Posted May 27, 2005 Can anyone help me? I got nothing for $HTTP_REFERER . Link to comment Share on other sites More sharing options...
matrix0978 Posted May 28, 2005 Share 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 Link to comment Share on other sites More sharing options...
notooth Posted May 29, 2005 Author Share Posted May 29, 2005 That works on my local server, but does not work on my web server . Link to comment Share on other sites More sharing options...
matrix0978 Posted May 29, 2005 Share Posted May 29, 2005 Does your web server provide PHP? Link to comment Share on other sites More sharing options...
notooth Posted May 29, 2005 Author Share Posted May 29, 2005 Of course, it does. I am making a web page with PHP and got problem with this. Link to comment Share on other sites More sharing options...
eXPerience-XP Posted May 30, 2005 Share Posted May 30, 2005 use $_SERVER['HTTP_REFERER'] Link to comment Share on other sites More sharing options...
notooth Posted May 30, 2005 Author Share Posted May 30, 2005 use $_SERVER['HTTP_REFERER']<{POST_SNAPBACK}>That doesn't work either . Link to comment Share on other sites More sharing options...
eXPerience-XP Posted May 30, 2005 Share 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 Link to comment Share on other sites More sharing options...
notooth Posted May 31, 2005 Author Share 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 . Link to comment Share on other sites More sharing options...
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