Ian,

You're missing what I said:  I did the cfinclude outside of the
relative web root and it WORKS.   It just doesn't work in the SW error
handler.

> you tried to use a relative link in your cfinclude that will not work outside 
> of the
> current webroot.  The webroot is what a relative path is relative to.  To go 
> outside of
> the webroot you need to use an absolute path with a ColdFusion mapping.

No, that is incorrect.  It is relative to the drive letter.  That
working url I posted above demonstrates this, where it includes a .cfm
that says "hello world" from an entirely separate folder that has
nothing to do with the web on that server.

web folder (also the web root):
c:/websites/mysecretbase.

include folder (totally outside the web root):
c:/storage/old/

WORKING cfinclude call:
<cfinclude template="../../storage/old/yoohoo.cfm">

Try it and you'll see.

I have to say its not something I thought to try until a few months
ago, but since realizing this I have used it with no problems on CF7
and -- now -- on CF 6.1.  I have no idea if it also works on earlier
CF versions.

--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:227541
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to