Im want to verify the domain name where my scripts are running
what I started with is
the problem with this is that the result could be www.domain.com or domain.com
where I would like it to be domain.com always at all times only because I will be comparing the domain name with a field in the database to verify if they are allowed to be using my application anyone knows if there is a predefined variable for this or do i have to cut off the www. in code ?