Hi Guys,
After reading the post about dumb-ass subject lines (which I'm sure I've done in the past) I thought I'd make an effort this time.
Anyway I need some help with the ereg_replace function. I am trying to strip the subdomain (www or whatever) so I just get domain.co.uk.
I have tried:
ereg_replace("[>].", "", $HTTP_HOST);
but that strips the dot and 1 previous letter - not exactly what I wanted.
I've tried other variations of the above (apart from the correct one) as they all display the full domain. The above line is the only one that actually changes the domain.
Please help.
Thanks