Hi, How can I get the URL of the page I am on without the 'www.' i.e. just mydomain.com? I need to enurse this is correct in case the user types in the domain without using the 'www.'.
I have looked at using substr but if the user leaves out the 'www.' then substr($_SERVER['HTTP_HOST'], 4) would return 'main.com', is there a better function to use in this instance? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php