Equinox Online Help - Language Reference - A to Z

Home

WebCurrentPage

Applies to
SyntaxWebCurrentPage
ActionReturns the relative path from the WWW directory of the ESP page currently being executed.
ScopeUsed in method language on an ESP page
Notes
CategoryWeb Server
See Also WebBaseDirectory, 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"