Tree [r5] /

File Date Author Commit
CHANGELOG.txt 2009-10-01 nitinguptaiitg [r5] v1.4 release
README.txt 2009-10-01 nitinguptaiitg [r5] v1.4 release
url_to_absolute.php 2009-10-01 nitinguptaiitg [r4] percentage encoding disabled

Read Me


This script converts the relative url to absolute url, provided a base url.

For more, look here:


Extract the script (url_to_absolute.php) into your web directory, include it into your current php file using:


then, you can convert the relative url to absolute url by calling:

url_to_absolute( $baseUrl, $relativeUrl);

It return false on failure, otherwise returns the absolute url. If the $relativeUrl is a valid absolute url, it is returned without any modification.


1) Original author: David R. Nadeau,
2) Edited and maintained by: Nitin Kr, Gupta,