Equinox Online Help - Language Reference - A to Z

Home

WebBaseDirectory

Applies to
SyntaxWebBaseDirectory
ActionThis function returns the path to the WWW directory.
ScopeUsed in method language on an ESP page
Notes
CategoryWeb Server
See Also WebCurrentPage, WebGetCookies, WebGetHeader, WebOutput, WebOutputFile, WebParameter, WebPostData, WebRedirect, WebSetCookie, WebSetHeader
Example

This example shows the physical location of the page being displayed. Note that WebBaseDirectory is a file system string, and WebCurrentPage is an url

string s

s = WebBaseDirectory & WebCurrentPage

replace s, "/", "\"
replace s, "\\", "\"
weboutput "This page is " & s & "
"
weboutputfile WebBaseDirectory & "include\header.inc"