Language: FoxPro
Retrieving the Virtual in a Web Connection Request
************************************************************************ * wwProcess :: GetUrlBasePath **************************************** *** Function: Method responsible for establishing the base path *** for this application. *** Assume: *** Pass: *** Return: ************************************************************************ FUNCTION GetUrlBasePath() LOCAL lcPath IF !EMPTY(THIS.cUrlBasePath) RETURN this.cUrlBasePath ENDIF *** Try to read ADSI Virtual Path setting from IIS lcPath = Request.ServerVariables("APPL_MD_PATH") * /LM/W3SVC/1/ROOT/wconnect IF !EMPTY(lcPath) lcPath = Extract(lcPath,"ROOT/","","",.t.) IF EMPTY(lcPath) lcPath = "/" ELSE lcPath = "/" + lcPath + "/" ENDIF this.cUrlBasePath = lcPath RETURN lcPath ENDIF TRY THIS.oConfig = EVALUATE("THIS.oServer.oConfig.o" + this.Class) THIS.cUrlBasePath = THIS.oConfig.cVirtualPath CATCH ENDTRY RETURN THIS.cUrlbasePath ENDFUNC * wwProcess :: GetUrlBasePath
Tags:
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

