hello webune,

today i was writing a simple php script and i wanted to know if you have come accross this.

you see, i have this site and i want to get the domain name using php in my code, but when i do the $_SERVER to get the hostname, i get the full www.example.com - and i only need the example.com part of it without the www.

what can i do?