<?php
include "convertir_enlace_inc.php";
$enl = new convertir_enlace($_SERVER["PHP_SELF"]);
print "<br><b>".$enl->este["url"]."</b><br>";
$uri = array();
$uri["ruta1"] = "../midom.php";
$uri["ruta2"] = "C:/Inetpub/wwwroot/program/BestPractices.html";
$uri["url1"] = $enl->desde_ruta($uri['ruta1']);
$uri["url2"] = $enl->desde_ruta($uri['ruta2']);
$uri["url3"] = $enl->desde_url('http://localhost/sitios/decumano');
$uri["url4"] = $enl->desde_url('../../../../sitios');
$uri["url4"] = $enl->desde_ruta('../../../../../../../../../../../../inexistente');
print nl2br(print_r($enl->este,true));
print nl2br(print_r($uri,true));
print nl2br(print_r($enl->log,true));
?>
|