GetBaseTemplatePath() - get the absolute path of an application's base page
GetBaseTemplatePath.cfm
<!DOCTYPE html">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GetBaseTemplatePath function example: how to get the absolute path of an application's base page</title>
</head>
<body>
<h2 style="color:Crimson">GetBaseTemplatePath Function Example</h2>
<cfset BaseTemplatePath=GetBaseTemplatePath()>
<cfoutput>
<b>application's base page absolute path:</b> #BaseTemplatePath#
</cfoutput>
</body>
</html>
- GetContextRoot() - get the path of J2EE server context root for the current request
- GetCurrentTemplatePath() - get the current template path who call this function
- GetDirectoryFromPath() - get a directory from an absolute path
- GetFileFromPath() - get a file name from an absolute path
- GetFileInfo() - get information about a file
- GetHTTPRequestData() - get HTTP request data (content, headers, method, protocol)