I know (and see) that this question has been asked for about a thousand times, but, after search and search, and somewhat confusing answers, i'm still looking for a right answer.
All I need is to identify my domain from url like (http://www.example.com; or http://example.com or www.example.com or just example.com) (no subdomains-for now) with PHP.
I'm creating a simple website, but hosted on 2 seperate domains (with same contents), and i need to identify on which site (domain) user is, in order to display the right logo, disclaimer etc.
Thanks.