Andrew... Are you saying that you setup "one site for multiple businesses" this way?
Rick > -----Original Message----- > From: Andrew Scott [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 8:53 PM > To: CF-Talk > Subject: RE: Help with Dynamic Directory > > > Not sure if this will help you out or not... > > But if you have one application.cfm for your entire site, > you could do > this. > > <cfif not IsDefined("Application.SiteDirectory")> > <cfset Application.SiteDirectory = ExpandPath(".") /> > </cfif> > > We use this to setup our sites with predefined information > including the > images path and the site path.... It might help you with what your > looking for. > > Regards, > Andrew Scott > > > > > -----Original Message----- > From: ColdFusion Developer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 December 2004 1:29 PM > To: CF-Talk > Subject: Help with Dynamic Directory > > I am working on a script that will dynamically determine where > a directory is located within an application. > > Lets say the structure is as follows: > > D:\www\myApp\ > D:\www\myApp\admin > D:\www\myApp\admin\profile > D:\www\myApp\images > D:\www\myApp\includes > D:\www\myApp\users > D:\www\myApp\users\profile > > Lets say the root of the application is configured in IIS > as: D:\www\myApp > > I know I can reference the images directory by using: > /images > > Regardless of the level a user is located within the application, > I need to reference the includes directory such as: > /includes > ../includes > ../../includes > > The catch is, I can not have cf mappings. This should be the > same in CF5, as well as CFMX and CFMX 6.1 > > At first I was going to parse the cgi.script_name as well as > other cgi variables to try and determine that. > > Does anyone know a better and more profficent way? > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~| > Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net > http://www.cfhosting.net > > Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185892 > 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=708.628.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.4.4 - Release Date: 11/30/2004 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.4.4 - Release Date: 11/30/2004 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - New Atlanta http://www.newatlanta.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185894 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