PHP Classes

File: examples/cleanup.php

Recommend this page to a friend!
  Classes of Jake Bown   Urly   examples/cleanup.php   Download  
File: examples/cleanup.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Urly
Clean and modify relative or absolute URLs
Author: By
Last change:
Date: 8 years ago
Size: 261 bytes
 

Contents

Class file image Download
<?php

/*
 * Cleanup - You can remove all params and return just the domain
 */

require '../urly.php';

$url = 'https://adobe.github.io/Spry/samples/data_region/JSONDataSetSample.html';

$urly = new urly($url, true);
$result = $urly->run();

echo
$result;


?>