* @license https://spdx.org/licenses/BSD-3-Clause BSD-3-Clause
* @link https://tools.ietf.org/html/rfc3986
*/
/**
* This example will decode the url given and display its
* constituent parts.
*/
error_reporting(E_ALL | E_STRICT);
require 'Net/URL2.php';
$url = new Net_URL2(
'https://example.com/pls/portal30/PORTAL30.wwpob_page.changetabs?'
.'p_back_url=http%3A%2F%2Fexample.com%2Fservlet%2Fpage%3F_pageid%3D360'
.'%2C366%2C368%2C382%26_dad%3Dportal30%26_schema%3DPORTAL30&foo=bar'
);
?>
Protocol...: protocol; ?>
Username...: user; ?>
Password...: pass; ?>
Server.....: host; ?>
Port.......: port; ?>
File/path..: path; ?>
Querystring: querystring); ?>
Anchor.....: anchor;?>
Full URL...: getUrl(); ?>
Resolve path (.././/foo/bar/joe/./././../jabba): resolve('.././/foo/bar/joe/./././../jabba'); ?>