Skip to main content
Inspiring
May 22, 2008
Answered

get the web root path programmatically?

  • May 22, 2008
  • 1 reply
  • 934 views
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.

    This topic has been closed for replies.
    Correct answer ajdklfajdlk
    Of course...that's what i couldn't find in the docs. thanks

    1 reply

    Inspiring
    May 23, 2008
    This should give what you're seeking.

    ExpandPath('/')

    ajdklfajdlkAuthorCorrect answer
    Inspiring
    May 23, 2008
    Of course...that's what i couldn't find in the docs. thanks