RE: Help with Dynamic Directory

2004-12-01 Thread Rick Faircloth
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: He

RE: Help with Dynamic Directory

2004-12-01 Thread Andrew Scott
, 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

Re: Help with Dynamic Directory

2004-12-01 Thread Massimo Foti
> I am working on a script that will dynamically determine where > a directory is located within an application. Try this: http://www.cflib.org/udf.cfm?ID=841 Inside my Application.cfm I usually have this: Hope it will help Massimo Foti http://www.massimocorner

Re: Help with Dynamic Directory

2004-11-30 Thread Barney Boisvert
You can use the cgi.script_name variable to get the path from the web root to the base template for the request (say /admin/profile). That is enough to compute the relative path to the "includes" directory. Just count the number of items in the path and use that many "../" in your relative path.

Help with Dynamic Directory

2004-11-30 Thread ColdFusion Developer
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 L