mod(array ("path" => $path), http\Url::JOIN_PATH|http\URL::SANITIZE_PATH) ->toString(); } // Get a url with a path relative to the // current script's path. function url_rel($path, $strip=false) { return url_join( $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], $path, $strip); } ?>