getUrlRelativeToWebRoot(webRootPath, filePath[, encodeURL])

Last updated June 23, 2010

author

Description:
Pass in a system path for both the web root and the file you need a relative path for. This will return the URL relative from the web site root. Option available to almost URLEncode the URL path that is returned (ignores periods).