Login   Register  
PHP Classes
elePHPant
Icontem

File: test-client.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Glen Scott  >  URL Normalizer  >  test-client.php  >  Download  
File: test-client.php
Role: Example script
Content type: text/plain
Description: Example script
Class: URL Normalizer
Normalize URLs according to RFC 3986
Author: By
Last change:
Date: 3 years ago
Size: 211 bytes
 

Contents

Class file image Download
<?php

require_once 'URLNormalizer.php';

$url 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d';

$un = new URLNormalizer();
$un->setUrl$url );

echo 
$un->normalize();
echo 
"\n";

// result: "example://a/b/c/%7Bfoo%7D"