I would like to extract the domain name (e.g. techarena.in) from the URL (http://www.techarena.in/test/test-page.html) so that in any case the site tries to add the link to my site on any page of their site. Thus, I could test the domain name and forward emails accordingly. For this I tested the code with the help of explode() but that doesn't worked. So can you help me how should I do that?
Bookmarks