<?php
/**
* This file tests the Class cParseurl and displays the
* Output:
* cparseurl Object
* (
* [scheme] => http
* [host] => www.domain.com
* [port] =>
* [user] =>
* [pass] =>
* [path] => /mypath/myfile.php
* [query] => a=1&b=2&c=3
* [fragment] =>
* [domain] => domain.com
* [tld] => com
* [bdomain] => domain
* [aHost] => Array
* (
* [0] => www
* [1] => domain
* [2] => com
* )
* )
*/
include("cParseurl.php");
$oParseurl = new cParseurl("www.domain.com/mypath/myfile.php?a=1&b=2&c=3");
echo("<pre>");
print_r($oParseurl);
echo("</pre>");
?>
|