Parsing Urls Script

URL Abbreviation of Uniform Resource Locator. In the protocol identifier is the first part of address and also it indicates what protocol to use.resource name is the second part and it specifies the IP address or the domain name.The two forward slashes and colon have use separated protocol identifier and the resource name.

Parsing Urls Script is used to extract the protocol, domain name, path, or other significant component of a URL.

Demo :



Enter URL :  

Example :

Give URL like: http://www.tutorialsscripts.com/free-php-scripts/checking-leap-years.php

Following code useful to you If you need to extract the URL.


<?php
  $url = "http://www.tutorialsscripts.com:80/tutorial/functions/trim.php?id=79 &page=2";
  $data = parse_url($url);
  foreach ($data as $k=>$v)
  {
    echo "$k: $v \n";
  }
?>

In the above code is used to extract the protocol, domain name, path, or other significant component of a URL.The parse_url() function is one of PHP’s more useful URL manipulation functions. Pass it a Uniform Resource Locator (URL), and parse_url() will go to work splitting it into its individual components. The resulting associative array contains separate keys for the protocol, host name, port number, remote path, and GET arguments.

Free Download Script :

If you need Parsing Urls Script click and download from following link.

Download




Content