Hi. i want to store that HTTP_REFERER value that is not of my site otherwise not stored. for example if user access directly my site www.mysite.com then not stored if switch from google or any other site then stored HTTP_REFERER.in this case what i do.please help me.
Look at the value of $_SERVER['HTTP_REFERER']. If it's from your domain, don't store it. Otherwise, do store it.
Which is the bit you're having trouble with?