http_build_url.php <?php // handy script from tycoonmaster at gmail dot com // http://fi2.php.net/manual/en/function.http-build-url.php#96335 // I didn't make this but I think it is useful so I store / share it here if (!function_exists('http_build_url')) { define('HTTP_URL_REPLACE', 1); // Replace every part of the first URL when there's one of the second URL define('HTTP_URL_JOIN_PATH', 2); // J