dev-master
9999999-devResolves relative urls, like a browser would
MIT
The Requires
The Development Requires
by Peter Postmann
1.0.0
1.0.0.0Resolves relative urls, like a browser would
MIT
The Requires
The Development Requires
by Peter Postmann
Wallogit.com
2017 © Pedro Peláez
Resolves relative urls, like a browser would
![Software License][ico-license]
, (*1)
Resolves relative urls, like a browser would., (*2)
This function returns a new URI based on base path ([RFC3986][1] URL, URN, Windows path, relative path or file) and a new path., (*3)
composer require peterpostmann/resolve_uri
If you dont want to use composer copy the resolve_uri.php file and from [peterpostmann\php-parse_uri][2] the parse_uri.php file and include it into your project., (*4)
use function peterpostmann\uri\resolve_uri; string resolve_uri ( string basePath, string newPath)
use function peterpostmann\uri\resolve_uri;
echo resolve_uri('http://a/b/c/d;p?q#x', 'x')."\n";
echo resolve_uri('C:\path\file1.ext', 'file2.ext')."\n";
echo resolve_uri('file://smb/path/to/file', '/new/path/x.ext')."\n";
The above example will output:, (*5)
http://a/b/c/x C:\path\file2.ext file://smb/new/path/x.ext
The MIT License (MIT). Please see License File for more information., (*6)
Resolves relative urls, like a browser would
MIT
Resolves relative urls, like a browser would
MIT