GetWebRoot: Difference between revisions
From Catglobe Wiki
More actions
jrfconvert import  |
No edit summary  |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{HelpFiles}} | |||
 | |||
====getWebRoot==== | ==== getWebRoot ==== | ||
Returns the web root. | Returns the web root. Â | ||
'''Syntax''' | '''Syntax''' Â | ||
getWebRoot() | getWebRoot() Â | ||
'''Arguments''' | '''Arguments''' Â | ||
None | None  | ||
'''Return type''' | '''Return type''' Â | ||
string | string  | ||
'''Examples''' | '''Examples''' Â | ||
'' | ''string filename = "myfile.g";'' Â | ||
''string | ''string location = getWebRoot() + "Public/GetImage.aspx?file=" + filename;'' Â | ||
'' | ''print(location); '' | ||
'' | ''//Result: http://[sitename].catglobe.com/Public/GetImage.aspx?file=myfile.g'' Â | ||
'''Availability''' | '''Availability''' Â | ||
Version 4.8 | Version 4.8 __NOTOC__ <!-- imported from file: 415.htm--> Â | ||
__NOTOC__ | Â | ||
<!-- imported from file: 415.htm--> | [[Category:General_Functions]] | ||
Latest revision as of 03:43, 22 December 2011

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