Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

get the web root path programmatically?

Explorer ,
May 22, 2008 May 22, 2008
I've got a column in a database with an absolute path to a file on our webserver.
What function can i call to return the webroot where the CF server is actually running?

I tried getContextRoot() but that returns a coldfusion temp directory.

941
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , May 23, 2008 May 23, 2008
Of course...that's what i couldn't find in the docs. thanks
Translate
Participant ,
May 22, 2008 May 22, 2008
This should give what you're seeking.

ExpandPath('/')

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 23, 2008 May 23, 2008
LATEST
Of course...that's what i couldn't find in the docs. thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources