On Apr 11, 2005 4:01 PM, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> > 2. Is expandPath("./") a reliable means of determining
> > the Application.cfm's absolute path? If so, is it
> > cross-platform? If not, what is?
expandPath("./") will return the full filesystem path of the directory
containing the file requested in the URL (regardless of which file you
are currently executing). That's how Mach II, amongst others, figures
out where to find the config file, based on your index.cfm file, even
tho' expandPath() is called from /MachII/mach-ii.cfm.
So it will never be able to tell you where Application.cfm is.
> If the value returned by getCurrentTemplatePath() ever changes from
> Application.cfm, that's a bug.
Yes, my reading of the docs agree that if you call
getCurrentTemplatePath() inside Application.cfm, it should return the
path of that Application.cfm file.
--
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202321
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54