1. created http://mysecretbase.com/helloworld.cfm, which lets say resides at 
c:/websites/mysecretbase.

2. Created c:/storage/old/yoohoo.cfm, which contains only the text "hello 
world!".  This folder has nothing to do with any web root.

3. helloworld.cfm contains only the line <cfinclude 
template="../../storage/old/yoo.cfm">


Yes 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.

Go into the CF administrator and create a mapping in the "mappings" section.  
Give it a logical path of say "\storageMapping" and a Directory path of 
"c:\storage"

Then you would write the <cfinlcude> in helloworld.cfm with an absolute path 
like this.
<cfinclude template="\storageMapping\old\you.cmf">.  

Notice how the template parameter starts with the logical path created in the 
ColdFusion mapping.  You can then drill down from the Directory path provided 
in the mapping to any file underneath it.


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:227517
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