> In CF Admin, I have set up a logical path called '/articles/', 
> and a physical path of 
> 'C:\Inetpub\wwwroot\test_domain1\literature\articles\'. I
> am trying to access this directory from a different domain: 
> test_domain2 (same box).
> 
> I set up a link to a file in this directory: <A
> href="index.cfm/page/articles.#file_name#">
> 
> .and in my index.cfm I have the CF_INCLUDE line:
> 
> <CFINCLUDE template="#Replace(Attributes.page, ".", "/", "ALL")#.htm">
> 
> So when I have the url
> http://www.test_domain2.com/index.cfm/page/articles.file0407.htm
> 
> .the index.cfm should map the 'articles' back to the
> 'C:\Inetpub\wwwroot\test_domain1\literature\articles\', and 
> the filename (file0407.htm) should be included. But its not 
> working that way. Can anyone see what's wrong here?

You might find it useful to display the error message, or better yet, use
exception handling to determine the file name and path it's trying to
reference.

Also, it's worth noting that there's a possible security issue in using
information from the browser to build the TEMPLATE attribute of a CFINCLUDE
tag, since the end user could potentially change that information to
reference a file that you don't want to include.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to