// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | // | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | // | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | // | | // +-----------------------------------------------------------------------+ // | Author: Richard Heyes <richard at php net> | // +-----------------------------------------------------------------------+ // $Id$ /** * This example will decode the url given and display its * constituent parts. */ error_reporting(E_ALL | E_STRICT); require_once 'Net/URL2.php'; //$url = &new Net_URL2('https://www.example.com/foo/bar/index.php?foo=bar'); Net_URL2::setOption('encode_query_keys', true); $url = new Net_URL2(); ?> <html> <body> <pre> Protocol...: <?php echo $url->protocol; ?> Username...: <?php echo $url->user; ?> Password...: <?php