SimplePie_IRI example

$seconds = '0' . $seconds;
        }

        $time .= $minutes.':';
        $time .= $seconds;

        return $time;
    }

    public static function absolutize_url($relative$base)
    {
        $iri = SimplePie_IRI::absolutize(new SimplePie_IRI($base)$relative);
        if ($iri === false)
        {
            return false;
        }
        return $iri->get_uri();
    }

    /** * Get a HTML/XML element from a HTML string * * @deprecated Use DOMDocument instead (parsing HTML with regex is bad!) * @param string $realname Element name (including namespace prefix if applicable) * @param string $string HTML document * @return array */

    public static function absolutize($base$relative)
    {
        if (!($relative instanceof SimplePie_IRI))
        {
            $relative = new SimplePie_IRI($relative);
        }
        if (!$relative->is_valid())
        {
            return false;
        }
        elseif ($relative->scheme !== null)
        {
            return clone $relative;
        }
        else
        {
            
Home | Imprint | This part of the site doesn't use cookies.