I do something similar
<cfsavecontent variable="config">
<cfinclude template="#cgi.server_name#/config.xml">
</cfsavecontent>
Russ
<cfswitch expression="#cgi.server_name#">
<cfcase value="mysite.com, www.mysite.com">
<cfset configfile="
-----Original Message-----
From: Paul Vernon [mailto:[EMAIL PROTECTED]
Sent: 04 December 2006 21:47
To: CF-Talk
Subject: RE: path outside webroot
We use config files that are based on host names... We used to use ini files
but now we use XML for simplicitys sake our ini files were structured like
this...
[default]
Mysecurepath=c:\secure\
[development.site.com]
Mysecurepath=d:\secure\
[www.site.com]
Mysecurepath=e:\secure\
By doing this, we could have one config file for all deployments and the
correct vars would be loaded in using the hostname which had to match the
sections in the ini file. If there were no matching sections, the defaults
were loaded instead.
Paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262825
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4