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
,
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
> 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
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.
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
5 matches
Mail list logo