PHP Classes

File: examples/relative.php

Recommend this page to a friend!
  Classes of Jake Bown   Urly   examples/relative.php   Download  
File: examples/relative.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: 298 bytes
 

Contents

Class file image Download
<?php

/*
 * Relative - When a relative URL is given, it is appended to the domain when set.
 */

require '../urly.php';

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

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

echo
$result;


?>