[PHP] extract domain name from a URL

2002-10-02 Thread Joseph Szobody
Folks, I want to keep track of referers to my site. I want to store the domain name of the referer in a db field. I want 'just' the domain name, not the full url. So I need a snippet of code that could parse the $HTTP_REFERER, and return just the domain name. Example 1)

Re: [PHP] extract domain name from a URL

2002-10-02 Thread Justin French
I think parseurl() does what you want... it's in the manual (surprise surprise!!) http://php.net/parseurl Justin on 03/10/02 5:18 AM, Joseph Szobody ([EMAIL PROTECTED]) wrote: Folks, I want to keep track of referers to my site. I want to store the domain name of the referer in a db