$url = "http://www.electrictoolbox.com/php-extract-domain-from-full-url/"; &n...