Show referring site using PHP
Hi
I am obviously using PHP
Is there a way to check the referring site on a page. I know about the getenv("HTTP_REFERER") but that gets the entire URL. I only want the main url.
For example:
when I use getenv("HTTP_REFERER") when someone comes from http://www.google.com/search?hl=en&source=hp&q=pie&aq=f&aqi=&oq= it displays that whole url.
I only want it to display the http://www.google.com or just google.com.
Any and all help is always appreciated.
