| 
<?
/*
 *************************************************************
 *    guaranixURL                                            *
 *************************************************************
 *    The Author disclaims the copyright of this project     *
 *    You are free to do use this project for free with      *
 *    the only condition that do not forget that "Is better  *
 *    Give than Receive"                                     *
 *************************************************************
 *    Cesar Rodas <[email protected]>                      *
 *************************************************************
 */
 include("gUrl.php");
 $url = new gUrl;
 $base = "http://www.test.com/dir1/dir2/dir3/page.html";
 print $url->newUri($base,"../page1.html")."<br>";
 print $url->newUri($base,".././page1.html")."<br>";
 print $url->newUri($base,"./page2.html")."<br>";
 print $url->newUri($base,"/page3.html")."<br>";
 ?>
 |