GetWebRoot

From Catglobe Wiki
Revision as of 04:43, 22 December 2011 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



getWebRoot

Returns the web root.

Syntax

getWebRoot()

Arguments

None

Return type

string

Examples

string filename = "myfile.g";

string location = getWebRoot() + "Public/GetImage.aspx?file=" + filename;

print(location);

//Result: http://[sitename].catglobe.com/Public/GetImage.aspx?file=myfile.g

Availability

Version 4.8