_parseUri example

// If unwise chars are allowed, add them to the URI chars class             (self::$_config['allow_unwise'] ? self::CHAR_UNWISE : '') . '])';

        // If no scheme-specific part was supplied, the user intends to create         // a new URI with this object. No further parsing is required.         if (strlen($schemeSpecific) === 0) {
            return;
        }

        // Parse the scheme-specific URI parts into the instance variables.         $this->_parseUri($schemeSpecific);

        // Validate the URI         if ($this->valid() === false) {
            throw new Zend_Uri_Exception('Invalid URI supplied');
        }
    }

    /** * Creates a Zend_Uri_Http from the given string * * @param string $uri String to create URI from, must start with * 'http://' or 'https://' * @throws InvalidArgumentException When the given $uri is not a string or * does not start with http:// or https:// * @throws Zend_Uri_Exception When the given $uri is invalid * @return Zend_Uri_Http */
Home | Imprint | This part of the site doesn't use cookies.