Get The Domain Or Host From URL Or Link

How to get the top domain from the URL ?

How to get the host from the URL?

I have the solution for you !!!!!

Here today i have a PHP script that can convert the long URL to the top domain or the source domain URL
its a simple for you to use i don't have much to say about this but a simple script for you to use and easy to integrate  it will be cool  Ohh yes !!!!!




Get The Domain From Long URL Or Link









PHP code :


<?php

$url = 'Your Url Here ';
echo $url;
$parse = parse_url($url);
print $parse['host']; 

?>





Author : Solomon David

  


Get The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or LinkGet The Domain From Long URL Or Link

Comments

Popular posts from this blog

Best Social Networking Software CMS 2013 - Free

Google Maps API Stylers Demo Documentation