Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Yasir Siddiqui  >  PHP URL Compare  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP URL Compare
Compare two URLs and show the differences
Author: By
Last change:
Date: 2013-10-25 04:35
Size: 571 bytes
 

Contents

Class file image Download
<?php

include_once("UrlDiffer.php");

$obj = new UrlDiffer("http://test.examplecom/?foo=bar&cake=lie&you=monster&beer=good&speech=free&breaking=bad&task=edit","http://example.com/?&speech=free&beer=good&aperture=science&task=add&foo=bar&you=here&breaking=over",true);
$obj->getDifference();

echo 
"<br><br>";

$obj2 = new UrlDiffer("http://www.test.com?a=123&task=edit&frame=cake&news=brakingnews&order=top20&type=premium&history=allpast","http://www.test.com?task=edit&history=lastmonth&news=brakingnews&a=123&type=premium&order=top20",true);
$obj2->getDifference();
?>