Re: Absolute Path Usage

2001-09-26 Thread Bruce Holm

I did ask them to set up CFMappings for me and they did.  My comments about
they wouldn't set up mappings was focused on them setting up a "/" mapping.
That would not be possible on a shared CF server.

Anyway I had them set up some custom (for me) mappings and they work
beautifully!
Thanks to all for your help!

Bruce Holm

- Original Message -
From: "Owens, Howard" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 10:04 AM
Subject: RE: Absolute Path Usage


> If I was hosting with a company (and I've worked with many shared hosts
and
> I use mappings on all my applications) that wouldn't set up a CFMapping
for
> me -- I'd change hosts.
>
> There's no reason not to set up mappings for you.
>
> H.
>
>
> Howard Owens
> Internet Operations Coordinator
> www.insidevc.com
> [EMAIL PROTECTED]
> AIM: GoCatGo1956
>
>
> > -Original Message-
> > From: Bruce Holm [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 25, 2001 9:16 AM
> > To: CF-Talk
> > Subject: Re: Absolute Path Usage
> >
> > My hosting company controls the CF Server administration mapping.  SInce
> > they share the CF server with many other website domains, they won't be
> > creating mappings like "/" to my web root.  If my domain was the only
one
> > on
> > their server (dedicated server) then I could have them do this.
> >
> > Thanks for responding.
> >
> > Bruce
> >
> > - Original Message -
> > From: "Chad Gray" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 25, 2001 8:52 AM
> > Subject: Re: Absolute Path Usage
> >
> >
> > > Im jumping into the middle also, but have to tried adding a mapping in
> > the
> > > CFadministrator?
> > >
> > > I had to use a path for some CFCINCLUDES that went 3 or 4 folders
deep,
> > and
> > > it works great!
> > >
> > >
> > >
> > > At 08:51 AM 9/25/2001 -0700, you wrote:
> > > >See below...
> > > >
> > > >- Original Message -
> > > >From: "Jeffry Houser" <[EMAIL PROTECTED]>
> > > >To: "CF-Talk" <[EMAIL PROTECTED]>
> > > >Sent: Tuesday, September 25, 2001 11:30 AM
> > > >Subject: Re: Absolute Path Usage
> > > >
> > > >
> > > > >   I didn't see the original post, so I'm jumping in the middle.
> > > >..
> > > > >   The way I do this is by setting a variable ( Either to the local
> > scope
> > > >or
> > > > > the request scope ) in the application.cfm called DirLevel:
> > > > >
> > > > > Root: Dirlevel = ""
> > > > >   Sub1Direvel = "../"
> > > > >SubSub1:Dirlevel = "../../"
> > > > >   Sub2Dirlevel = "../
> > > > >
> > > > >
> > > > >   When you create your include, make all the paths relative to the
> > root
> > > > > directory and add dirlevel in there.
> > > > >
> > > > > Home
> > > > > Page 1
> > > > > etc.. etc..
> > > > >
> > > > >   This makes it easy, and I do it all the time.
> > > > >   One potential problem is that you'll need different
> > application.cfm
> > for
> > > > > each directory.
> > > >
> > > >This technique may be useful in some cases, although I'm not sure
that
> > it's
> > > >worth it.  I'll probably just stick to hardcoding the ../../  etc
> > levels
> > in
> > > >each CFINCLUDE statement.
> > > >Thanks for the tip!
> > > >
> > > > >
> > > > > >I have tried a variety of absolute paths and find none that work.
> > If
> > > >anyone
> > > > > >can shed some light on this...my host shares the CF server so
> > asking
> > them
> > > >to
> > > > > >configure a mapping for "/" is not going to happen since it would
> > only
> > > >work
> > > > > >for my domain and not for all the other domains they host.
> > > > >
> > > > >You can always get to the exact root directory (I.E.
> > www.mysite.com/ )
> > > > > by using the slash.  So the code I wrote above could easily be
> > re-written
> > > >like:
> > > > >
> > > > > Home
> > > > > Page 1
> > > > >
> > > > >   And the browser sees the '/' and automatically adds it to the
end
> > of
> > the
> > > > > url, such as www.mysite.com/index.cfm for the first link.  Try it;
> > It
> > > > > works.  However, if the root directory of your application is not
> > the
> > root
> > > > > directory of your server, that won't work.
> > > >
> > > >It may work for  but not for  tag.  That
> > is
> > the
> > > >whole point of my discussion.  CFINCLUDE is very picky...it appears
it
> > ONLY
> > > >sees relative paths or paths specified in the server mapping file.
> > That's
> > > >IT!  How I wish it recognized "/" as the web root, meaning the
> > placeholder
> > > >or representative location for http://www.mydomain.com/.
> > > >
> > > >Bruce
> > > >
> > >
> >
> 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Andrew Scott

Do you have access to the cfregistry tag!


Regards,
Andrew Scott


-Original Message-
From: Bruce Holm [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 26 September 2001 1:16 AM
To: CF-Talk
Subject: Re: Absolute Path Usage

What I am wanting is a relative path but relative to the web root...for
portability.

I have an include file that I want to include by specifying the same
path
every time in all files in the hierarchy.  So I put this include file in
/global directory and want to reference it by "/global/foo.cfm", which
if it
worked, would be the same include line in all files in my web site.  But
this path does not work for includes.

I have tried a variety of absolute paths and find none that work.  If
anyone
can shed some light on this...my host shares the CF server so asking
them to
configure a mapping for "/" is not going to happen since it would only
work
for my domain and not for all the other domains they host.

The only workaround I can think of is create some code that looks at the
absolute template location and calculate what level the template is in
and
set the relative path accordingly... not very idea.

Or just hard code the include path in each file on a file by file basis.

Bruce

- Original Message -
From: "Peter Tilbrook" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 5:10 AM
Subject: RE: Absolute Path Usage


> Relative paths are recommended, if more for portability that anything
else.
>
> 

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Shawn Grover

Well, I posted this once, about 2 hours ago, and still don't see it online,
so here it is again...

Here's some snippets of code that show how to use CFHTTP to get include
files.  Not saying this is "the best" method out there, but it works well
for my purposes.  (at one point we were using a graphic place holder for the
navigation tree, hence the reason for capturing/checking the mime type of
the navigation file.)








































Sample Page







#txtHeader#



 
 
 








#txtNav#







-Original Message-
From: Bruce Holm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 2:50 PM
To: CF-Talk
Subject: Re: Absolute Path Usage


Hi Shawn,
Would you be willing to post or send me directly a small example of this
method?

Thanks
Bruce

- Original Message -
From: "Shawn Grover" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 11:51 AM
Subject: RE: Absolute Path Usage


>  can only take relative paths.
>
> To get around this issue with my templates, I used CFHTTP to read the file
> in question (page header and menu), then dump the resulting text to my
page
> in the appropriate locations.  This is nice because CFHTTP uses absolute
> paths, and saves me the hassle of remembering to set all my include files
> correctly, and leaves me free to add directory levels and still have my
> header/menu display as I expected, with no changes.
>
> Hope this helps.
>
> Shawn Grover
>


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Michael Wilson

Ya.. I would like to see this as well.

TIA!

Mike

> -Original Message-
> From: Bruce Holm [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, September 25, 2001 4:50 PM
> To: CF-Talk
> Subject: Re: Absolute Path Usage
> 
> 
> Hi Shawn,
> Would you be willing to post or send me directly a small 
> example of this method?
> 
> Thanks
> Bruce
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Bruce Holm

Hi Shawn,
Would you be willing to post or send me directly a small example of this
method?

Thanks
Bruce

- Original Message -
From: "Shawn Grover" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 11:51 AM
Subject: RE: Absolute Path Usage


>  can only take relative paths.
>
> To get around this issue with my templates, I used CFHTTP to read the file
> in question (page header and menu), then dump the resulting text to my
page
> in the appropriate locations.  This is nice because CFHTTP uses absolute
> paths, and saves me the hassle of remembering to set all my include files
> correctly, and leaves me free to add directory levels and still have my
> header/menu display as I expected, with no changes.
>
> Hope this helps.
>
> Shawn Grover
>

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Michael Wilson

Hi,

Not trying to argue the point, but in my experience most ISP's will
create a mapping for you even in a shared environment, just not a
totally generic one like "/" because it is already in use by the CF
Server. Besides you don't need a mapping to your "web root" you need a
mapping to an include directory... Well you could put all your includes
in your root, but that is just messy :].

Basically you need to put your include.cfms in a directory... Call the
directory whatever you want i.e. "includes".

Have your ISP set up a mapping like:

Logical Path: /yourdomainname/
Directory Path: C:\Inetpub\wwwroot\yourdomain\includes (or whatever your
directory path is... You tell them the directory you need mapped and
they handle the rest.)

Then you call your includes like this:



If they won't do this, I would change hosts. There is no reason they
shouldn't be able to create mappings for their clients.

HTH,
Mike

> -Original Message-
> From: Bruce Holm [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, September 25, 2001 12:16 PM
> To: CF-Talk
> Subject: Re: Absolute Path Usage
> 
> 
> My hosting company controls the CF Server administration 
> mapping.  SInce they share the CF server with many other 
> website domains, they won't be creating mappings like "/" to 
> my web root.  
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Mark Stewart

Not true. Use cf admin to set up your mappings.

Mark

-Original Message-
From: Shawn Grover [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 2:52 PM
To: CF-Talk
Subject: RE: Absolute Path Usage


 can only take relative paths.

To get around this issue with my templates, I used CFHTTP to read the
file
in question (page header and menu), then dump the resulting text to my
page
in the appropriate locations.  This is nice because CFHTTP uses absolute
paths, and saves me the hassle of remembering to set all my include
files
correctly, and leaves me free to add directory levels and still have my
header/menu display as I expected, with no changes.

Hope this helps.

Shawn Grover

-Original Message-
From: Bruce Holm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 9:16 AM
To: CF-Talk
Subject: Re: Absolute Path Usage


What I am wanting is a relative path but relative to the web root...for
portability.

I have an include file that I want to include by specifying the same
path
every time in all files in the hierarchy.  So I put this include file in
/global directory and want to reference it by "/global/foo.cfm", which
if it
worked, would be the same include line in all files in my web site.  But
this path does not work for includes.

I have tried a variety of absolute paths and find none that work.  If
anyone
can shed some light on this...my host shares the CF server so asking
them to
configure a mapping for "/" is not going to happen since it would only
work
for my domain and not for all the other domains they host.

The only workaround I can think of is create some code that looks at the
absolute template location and calculate what level the template is in
and
set the relative path accordingly... not very idea.

Or just hard code the include path in each file on a file by file basis.

Bruce

- Original Message -
From: "Peter Tilbrook" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 5:10 AM
Subject: RE: Absolute Path Usage


> Relative paths are recommended, if more for portability that anything
else.
>
> 


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Dave Watts

>  can only take relative paths.

This isn't correct. You can use relative paths and absolute paths defined
within the CF Administrator with CFINCLUDE.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Jeffry Houser

  Aren't there efficiency considerations for using CFHTTP?

  I don't think choosing a solution because "Then I don't have to code 
correctly" is a good reasoning.

At 12:51 PM 09/25/2001 -0600, you wrote:
> can only take relative paths.
>
>To get around this issue with my templates, I used CFHTTP to read the file
>in question (page header and menu), then dump the resulting text to my page
>in the appropriate locations.  This is nice because CFHTTP uses absolute
>paths, and saves me the hassle of remembering to set all my include files
>correctly, and leaves me free to add directory levels and still have my
>header/menu display as I expected, with no changes.
>
>Hope this helps.
>
>Shawn Grover
>
>-Original Message-
>From: Bruce Holm [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 25, 2001 9:16 AM
>To: CF-Talk
>Subject: Re: Absolute Path Usage
>
>
>What I am wanting is a relative path but relative to the web root...for
>portability.
>
>I have an include file that I want to include by specifying the same path
>every time in all files in the hierarchy.  So I put this include file in
>/global directory and want to reference it by "/global/foo.cfm", which if it
>worked, would be the same include line in all files in my web site.  But
>this path does not work for includes.
>
>I have tried a variety of absolute paths and find none that work.  If anyone
>can shed some light on this...my host shares the CF server so asking them to
>configure a mapping for "/" is not going to happen since it would only work
>for my domain and not for all the other domains they host.
>
>The only workaround I can think of is create some code that looks at the
>absolute template location and calculate what level the template is in and
>set the relative path accordingly... not very idea.
>
>Or just hard code the include path in each file on a file by file basis.
>
>Bruce
>
>- Original Message -
>From: "Peter Tilbrook" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Tuesday, September 25, 2001 5:10 AM
>Subject: RE: Absolute Path Usage
>
>
> > Relative paths are recommended, if more for portability that anything
>else.
> >
> >
>
>
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Shawn Grover

 can only take relative paths.

To get around this issue with my templates, I used CFHTTP to read the file
in question (page header and menu), then dump the resulting text to my page
in the appropriate locations.  This is nice because CFHTTP uses absolute
paths, and saves me the hassle of remembering to set all my include files
correctly, and leaves me free to add directory levels and still have my
header/menu display as I expected, with no changes.

Hope this helps.

Shawn Grover

-Original Message-
From: Bruce Holm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 9:16 AM
To: CF-Talk
Subject: Re: Absolute Path Usage


What I am wanting is a relative path but relative to the web root...for
portability.

I have an include file that I want to include by specifying the same path
every time in all files in the hierarchy.  So I put this include file in
/global directory and want to reference it by "/global/foo.cfm", which if it
worked, would be the same include line in all files in my web site.  But
this path does not work for includes.

I have tried a variety of absolute paths and find none that work.  If anyone
can shed some light on this...my host shares the CF server so asking them to
configure a mapping for "/" is not going to happen since it would only work
for my domain and not for all the other domains they host.

The only workaround I can think of is create some code that looks at the
absolute template location and calculate what level the template is in and
set the relative path accordingly... not very idea.

Or just hard code the include path in each file on a file by file basis.

Bruce

- Original Message -
From: "Peter Tilbrook" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 5:10 AM
Subject: RE: Absolute Path Usage


> Relative paths are recommended, if more for portability that anything
else.
>
> 

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Stephenie Hamilton

Howard said:
>they won't be
> creating mappings like "/" to my web root

that doesn't necessarily mean they won't set up a mapping for you, but they
cannot set up a "/" mapping as that is already used by CF for the default
root

ask them to setup a mapping for "/somename" that points to where you want
it, then you can use 
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 1:04 PM
Subject: RE: Absolute Path Usage


> If I was hosting with a company (and I've worked with many shared hosts
and
> I use mappings on all my applications) that wouldn't set up a CFMapping
for
> me -- I'd change hosts.
>
> There's no reason not to set up mappings for you.
>
> H.
>
>
> Howard Owens
> Internet Operations Coordinator
> www.insidevc.com
> [EMAIL PROTECTED]
> AIM: GoCatGo1956
>
>
> > -Original Message-
> > From: Bruce Holm [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 25, 2001 9:16 AM
> > To: CF-Talk
> > Subject: Re: Absolute Path Usage
> >
> > My hosting company controls the CF Server administration mapping.  SInce
> > they share the CF server with many other website domains, they won't be
> > creating mappings like "/" to my web root.  If my domain was the only
one
> > on
> > their server (dedicated server) then I could have them do this.
> >
> > Thanks for responding.
> >
> > Bruce
> >
> > - Original Message -
> > From: "Chad Gray" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 25, 2001 8:52 AM
> > Subject: Re: Absolute Path Usage
> >
> >
> > > Im jumping into the middle also, but have to tried adding a mapping in
> > the
> > > CFadministrator?
> > >
> > > I had to use a path for some CFCINCLUDES that went 3 or 4 folders
deep,
> > and
> > > it works great!
> > >
> > >
> > >
> > > At 08:51 AM 9/25/2001 -0700, you wrote:
> > > >See below...
> > > >
> > > >- Original Message -
> > > >From: "Jeffry Houser" <[EMAIL PROTECTED]>
> > > >To: "CF-Talk" <[EMAIL PROTECTED]>
> > > >Sent: Tuesday, September 25, 2001 11:30 AM
> > > >Subject: Re: Absolute Path Usage
> > > >
> > > >
> > > > >   I didn't see the original post, so I'm jumping in the middle.
> > > >..
> > > > >   The way I do this is by setting a variable ( Either to the local
> > scope
> > > >or
> > > > > the request scope ) in the application.cfm called DirLevel:
> > > > >
> > > > > Root: Dirlevel = ""
> > > > >   Sub1Direvel = "../"
> > > > >SubSub1:Dirlevel = "../../"
> > > > >   Sub2Dirlevel = "../
> > > > >
> > > > >
> > > > >   When you create your include, make all the paths relative to the
> > root
> > > > > directory and add dirlevel in there.
> > > > >
> > > > > Home
> > > > > Page 1
> > > > > etc.. etc..
> > > > >
> > > > >   This makes it easy, and I do it all the time.
> > > > >   One potential problem is that you'll need different
> > application.cfm
> > for
> > > > > each directory.
> > > >
> > > >This technique may be useful in some cases, although I'm not sure
that
> > it's
> > > >worth it.  I'll probably just stick to hardcoding the ../../  etc
> > levels
> > in
> > > >each CFINCLUDE statement.
> > > >Thanks for the tip!
> > > >
> > > > >
> > > > > >I have tried a variety of absolute paths and find none that work.
> > If
> > > >anyone
> > > > > >can shed some light on this...my host shares the CF server so
> > asking
> > them
> > > >to
> > > > > >configure a mapping for "/" is not going to happen since it would
> > only
> > > >work
> > > > > >for my domain and not for all the other domains they host.
> > > > >
> > > > >You can always get to the exact root directory (I.E.
> > www.mysite.com/ )
> > > > > by using the slash.  So the code I wrote above could easily be
> > re-written
> > > >like:
> > > > >
> > > > > Home
> > > > > Page 1
> > > > >
> > > > >   And the browser sees the '/' and automatically adds it to the
end
> > of
> > the
> > > > > url, such as www.mysite.com/index.cfm for the first link.  Try it;
> > It
> > > > > works.  However, if the root directory of your application is not
> > the
> > root
> > > > > directory of your server, that won't work.
> > > >
> > > >It may work for  but not for  tag.  That
> > is
> > the
> > > >whole point of my discussion.  CFINCLUDE is very picky...it appears
it
> > ONLY
> > > >sees relative paths or paths specified in the server mapping file.
> > That's
> > > >IT!  How I wish it recognized "/" as the web root, meaning the
> > placeholder
> > > >or representative location for http://www.mydomain.com/.
> > > >
> > > >Bruce
> > > >
> > >
> >
> 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Owens, Howard

If I was hosting with a company (and I've worked with many shared hosts and
I use mappings on all my applications) that wouldn't set up a CFMapping for
me -- I'd change hosts.

There's no reason not to set up mappings for you.

H.


Howard Owens
Internet Operations Coordinator
www.insidevc.com
[EMAIL PROTECTED]
AIM: GoCatGo1956


> -Original Message-
> From: Bruce Holm [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, September 25, 2001 9:16 AM
> To:   CF-Talk
> Subject:  Re: Absolute Path Usage
> 
> My hosting company controls the CF Server administration mapping.  SInce
> they share the CF server with many other website domains, they won't be
> creating mappings like "/" to my web root.  If my domain was the only one
> on
> their server (dedicated server) then I could have them do this.
> 
> Thanks for responding.
> 
> Bruce
> 
> - Original Message -
> From: "Chad Gray" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 25, 2001 8:52 AM
> Subject: Re: Absolute Path Usage
> 
> 
> > Im jumping into the middle also, but have to tried adding a mapping in
> the
> > CFadministrator?
> >
> > I had to use a path for some CFCINCLUDES that went 3 or 4 folders deep,
> and
> > it works great!
> >
> >
> >
> > At 08:51 AM 9/25/2001 -0700, you wrote:
> > >See below...
> > >
> > >- Original Message -
> > >From: "Jeffry Houser" <[EMAIL PROTECTED]>
> > >To: "CF-Talk" <[EMAIL PROTECTED]>
> > >Sent: Tuesday, September 25, 2001 11:30 AM
> > >Subject: Re: Absolute Path Usage
> > >
> > >
> > > >   I didn't see the original post, so I'm jumping in the middle.
> > >..
> > > >   The way I do this is by setting a variable ( Either to the local
> scope
> > >or
> > > > the request scope ) in the application.cfm called DirLevel:
> > > >
> > > > Root: Dirlevel = ""
> > > >   Sub1Direvel = "../"
> > > >SubSub1:Dirlevel = "../../"
> > > >   Sub2Dirlevel = "../
> > > >
> > > >
> > > >   When you create your include, make all the paths relative to the
> root
> > > > directory and add dirlevel in there.
> > > >
> > > > Home
> > > > Page 1
> > > > etc.. etc..
> > > >
> > > >   This makes it easy, and I do it all the time.
> > > >   One potential problem is that you'll need different
> application.cfm
> for
> > > > each directory.
> > >
> > >This technique may be useful in some cases, although I'm not sure that
> it's
> > >worth it.  I'll probably just stick to hardcoding the ../../  etc
> levels
> in
> > >each CFINCLUDE statement.
> > >Thanks for the tip!
> > >
> > > >
> > > > >I have tried a variety of absolute paths and find none that work.
> If
> > >anyone
> > > > >can shed some light on this...my host shares the CF server so
> asking
> them
> > >to
> > > > >configure a mapping for "/" is not going to happen since it would
> only
> > >work
> > > > >for my domain and not for all the other domains they host.
> > > >
> > > >You can always get to the exact root directory (I.E.
> www.mysite.com/ )
> > > > by using the slash.  So the code I wrote above could easily be
> re-written
> > >like:
> > > >
> > > > Home
> > > > Page 1
> > > >
> > > >   And the browser sees the '/' and automatically adds it to the end
> of
> the
> > > > url, such as www.mysite.com/index.cfm for the first link.  Try it;
> It
> > > > works.  However, if the root directory of your application is not
> the
> root
> > > > directory of your server, that won't work.
> > >
> > >It may work for  but not for  tag.  That
> is
> the
> > >whole point of my discussion.  CFINCLUDE is very picky...it appears it
> ONLY
> > >sees relative paths or paths specified in the server mapping file.
> That's
> > >IT!  How I wish it recognized "/" as the web root, meaning the
> placeholder
> > >or representative location for http://www.mydomain.com/.
> > >
> > >Bruce
> > >
> > 
> 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Mark Stewart

If you were to use fusebox style methodology, you would put those
variables in app_locals.cfm. It's already been stated that mappings are
not the answer, but that's what I use - much cleaner.

-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 3:18 PM
To: CF-Talk
Subject: Re: Absolute Path Usage


At 08:51 AM 09/25/2001 -0700, you wrote:
>See below...
>
>- Original Message -
>From: "Jeffry Houser" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Tuesday, September 25, 2001 11:30 AM
>Subject: Re: Absolute Path Usage
>
>
> >   I didn't see the original post, so I'm jumping in the middle.
>..
> >   The way I do this is by setting a variable ( Either to the local
scope
>or
> > the request scope ) in the application.cfm called DirLevel:
> >
> > Root: Dirlevel = ""
> >   Sub1Direvel = "../"
> >SubSub1:Dirlevel = "../../"
> >   Sub2Dirlevel = "../
> >
> >
> >   When you create your include, make all the paths relative to the
root
> > directory and add dirlevel in there.
> >
> > Home
> > Page 1
> > etc.. etc..
> >
> >   This makes it easy, and I do it all the time.
> >   One potential problem is that you'll need different
application.cfm for
> > each directory.
>
>This technique may be useful in some cases, although I'm not sure that
it's
>worth it.  I'll probably just stick to hardcoding the ../../  etc
levels in
>each CFINCLUDE statement.
>Thanks for the tip!

  I have grown quite fond of this technique, although I haven't found a
way 
of dealing with multiple Application.cfms that I'm completely happy 
with.  I would either break off the pertinent application.cfm lines into
a 
separate include and include them into all the Application.cfms or do 
something like this:




  I haven't decided which way is 'better' or 'worse' .



> >
> > >I have tried a variety of absolute paths and find none that work.
If
>anyone
> > >can shed some light on this...my host shares the CF server so
asking them
>to
> > >configure a mapping for "/" is not going to happen since it would
only
>work
> > >for my domain and not for all the other domains they host.
> >
> >You can always get to the exact root directory (I.E.
www.mysite.com/ )
> > by using the slash.  So the code I wrote above could easily be
re-written
>like:
> >
> > Home
> > Page 1
> >
> >   And the browser sees the '/' and automatically adds it to the end
of the
> > url, such as www.mysite.com/index.cfm for the first link.  Try it;
It
> > works.  However, if the root directory of your application is not
the root
> > directory of your server, that won't work.
>
>It may work for  but not for  tag.  That
is the
>whole point of my discussion.  CFINCLUDE is very picky...it appears it
ONLY
>sees relative paths or paths specified in the server mapping file.
That's
>IT!  How I wish it recognized "/" as the web root, meaning the
placeholder
>or representative location for http://www.mydomain.com/.

  That's good to know, since I'm pretty stuck to the 'dirlevel' theory
I've 
never experienced it.


--
Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Fax / Phone: 860-223-7946
--
I'm looking for a room-mate in the Hartford CT area, starting in October
--
DotComIt: Database Driven Web Data
My Book: Instant ColdFusion 5.0  | http://www.instantcoldfusion.com
--
Far Cry Fly, Alternative Folk Rock
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
--
A friend is someone who knows how to spell your name.

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Jeffry Houser

At 08:51 AM 09/25/2001 -0700, you wrote:
>See below...
>
>- Original Message -
>From: "Jeffry Houser" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Tuesday, September 25, 2001 11:30 AM
>Subject: Re: Absolute Path Usage
>
>
> >   I didn't see the original post, so I'm jumping in the middle.
>..
> >   The way I do this is by setting a variable ( Either to the local scope
>or
> > the request scope ) in the application.cfm called DirLevel:
> >
> > Root: Dirlevel = ""
> >   Sub1Direvel = "../"
> >SubSub1:Dirlevel = "../../"
> >   Sub2Dirlevel = "../
> >
> >
> >   When you create your include, make all the paths relative to the root
> > directory and add dirlevel in there.
> >
> > Home
> > Page 1
> > etc.. etc..
> >
> >   This makes it easy, and I do it all the time.
> >   One potential problem is that you'll need different application.cfm for
> > each directory.
>
>This technique may be useful in some cases, although I'm not sure that it's
>worth it.  I'll probably just stick to hardcoding the ../../  etc levels in
>each CFINCLUDE statement.
>Thanks for the tip!

  I have grown quite fond of this technique, although I haven't found a way 
of dealing with multiple Application.cfms that I'm completely happy 
with.  I would either break off the pertinent application.cfm lines into a 
separate include and include them into all the Application.cfms or do 
something like this:




  I haven't decided which way is 'better' or 'worse' .



> >
> > >I have tried a variety of absolute paths and find none that work.  If
>anyone
> > >can shed some light on this...my host shares the CF server so asking them
>to
> > >configure a mapping for "/" is not going to happen since it would only
>work
> > >for my domain and not for all the other domains they host.
> >
> >You can always get to the exact root directory (I.E. www.mysite.com/ )
> > by using the slash.  So the code I wrote above could easily be re-written
>like:
> >
> > Home
> > Page 1
> >
> >   And the browser sees the '/' and automatically adds it to the end of the
> > url, such as www.mysite.com/index.cfm for the first link.  Try it; It
> > works.  However, if the root directory of your application is not the root
> > directory of your server, that won't work.
>
>It may work for  but not for  tag.  That is the
>whole point of my discussion.  CFINCLUDE is very picky...it appears it ONLY
>sees relative paths or paths specified in the server mapping file.  That's
>IT!  How I wish it recognized "/" as the web root, meaning the placeholder
>or representative location for http://www.mydomain.com/.

  That's good to know, since I'm pretty stuck to the 'dirlevel' theory I've 
never experienced it.


--
Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Fax / Phone: 860-223-7946
--
I'm looking for a room-mate in the Hartford CT area, starting in October
--
DotComIt: Database Driven Web Data
My Book: Instant ColdFusion 5.0  | http://www.instantcoldfusion.com
--
Far Cry Fly, Alternative Folk Rock
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
--
A friend is someone who knows how to spell your name.
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Bruce Holm

My hosting company controls the CF Server administration mapping.  SInce
they share the CF server with many other website domains, they won't be
creating mappings like "/" to my web root.  If my domain was the only one on
their server (dedicated server) then I could have them do this.

Thanks for responding.

Bruce

- Original Message -
From: "Chad Gray" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 8:52 AM
Subject: Re: Absolute Path Usage


> Im jumping into the middle also, but have to tried adding a mapping in the
> CFadministrator?
>
> I had to use a path for some CFCINCLUDES that went 3 or 4 folders deep,
and
> it works great!
>
>
>
> At 08:51 AM 9/25/2001 -0700, you wrote:
> >See below...
> >
> >- Original Message -
> >From: "Jeffry Houser" <[EMAIL PROTECTED]>
> >To: "CF-Talk" <[EMAIL PROTECTED]>
> >Sent: Tuesday, September 25, 2001 11:30 AM
> >Subject: Re: Absolute Path Usage
> >
> >
> > >   I didn't see the original post, so I'm jumping in the middle.
> >..
> > >   The way I do this is by setting a variable ( Either to the local
scope
> >or
> > > the request scope ) in the application.cfm called DirLevel:
> > >
> > > Root: Dirlevel = ""
> > >   Sub1Direvel = "../"
> > >SubSub1:Dirlevel = "../../"
> > >   Sub2Dirlevel = "../
> > >
> > >
> > >   When you create your include, make all the paths relative to the
root
> > > directory and add dirlevel in there.
> > >
> > > Home
> > > Page 1
> > > etc.. etc..
> > >
> > >   This makes it easy, and I do it all the time.
> > >   One potential problem is that you'll need different application.cfm
for
> > > each directory.
> >
> >This technique may be useful in some cases, although I'm not sure that
it's
> >worth it.  I'll probably just stick to hardcoding the ../../  etc levels
in
> >each CFINCLUDE statement.
> >Thanks for the tip!
> >
> > >
> > > >I have tried a variety of absolute paths and find none that work.  If
> >anyone
> > > >can shed some light on this...my host shares the CF server so asking
them
> >to
> > > >configure a mapping for "/" is not going to happen since it would
only
> >work
> > > >for my domain and not for all the other domains they host.
> > >
> > >You can always get to the exact root directory (I.E.
www.mysite.com/ )
> > > by using the slash.  So the code I wrote above could easily be
re-written
> >like:
> > >
> > > Home
> > > Page 1
> > >
> > >   And the browser sees the '/' and automatically adds it to the end of
the
> > > url, such as www.mysite.com/index.cfm for the first link.  Try it; It
> > > works.  However, if the root directory of your application is not the
root
> > > directory of your server, that won't work.
> >
> >It may work for  but not for  tag.  That is
the
> >whole point of my discussion.  CFINCLUDE is very picky...it appears it
ONLY
> >sees relative paths or paths specified in the server mapping file.
That's
> >IT!  How I wish it recognized "/" as the web root, meaning the
placeholder
> >or representative location for http://www.mydomain.com/.
> >
> >Bruce
> >
> 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Chad Gray

Im jumping into the middle also, but have to tried adding a mapping in the 
CFadministrator?

I had to use a path for some CFCINCLUDES that went 3 or 4 folders deep, and 
it works great!



At 08:51 AM 9/25/2001 -0700, you wrote:
>See below...
>
>- Original Message -
>From: "Jeffry Houser" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Tuesday, September 25, 2001 11:30 AM
>Subject: Re: Absolute Path Usage
>
>
> >   I didn't see the original post, so I'm jumping in the middle.
>..
> >   The way I do this is by setting a variable ( Either to the local scope
>or
> > the request scope ) in the application.cfm called DirLevel:
> >
> > Root: Dirlevel = ""
> >   Sub1Direvel = "../"
> >SubSub1:Dirlevel = "../../"
> >   Sub2Dirlevel = "../
> >
> >
> >   When you create your include, make all the paths relative to the root
> > directory and add dirlevel in there.
> >
> > Home
> > Page 1
> > etc.. etc..
> >
> >   This makes it easy, and I do it all the time.
> >   One potential problem is that you'll need different application.cfm for
> > each directory.
>
>This technique may be useful in some cases, although I'm not sure that it's
>worth it.  I'll probably just stick to hardcoding the ../../  etc levels in
>each CFINCLUDE statement.
>Thanks for the tip!
>
> >
> > >I have tried a variety of absolute paths and find none that work.  If
>anyone
> > >can shed some light on this...my host shares the CF server so asking them
>to
> > >configure a mapping for "/" is not going to happen since it would only
>work
> > >for my domain and not for all the other domains they host.
> >
> >You can always get to the exact root directory (I.E. www.mysite.com/ )
> > by using the slash.  So the code I wrote above could easily be re-written
>like:
> >
> > Home
> > Page 1
> >
> >   And the browser sees the '/' and automatically adds it to the end of the
> > url, such as www.mysite.com/index.cfm for the first link.  Try it; It
> > works.  However, if the root directory of your application is not the root
> > directory of your server, that won't work.
>
>It may work for  but not for  tag.  That is the
>whole point of my discussion.  CFINCLUDE is very picky...it appears it ONLY
>sees relative paths or paths specified in the server mapping file.  That's
>IT!  How I wish it recognized "/" as the web root, meaning the placeholder
>or representative location for http://www.mydomain.com/.
>
>Bruce
>
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Bruce Holm

See below...

- Original Message -
From: "Jeffry Houser" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 11:30 AM
Subject: Re: Absolute Path Usage


>   I didn't see the original post, so I'm jumping in the middle.
..
>   The way I do this is by setting a variable ( Either to the local scope
or
> the request scope ) in the application.cfm called DirLevel:
>
> Root: Dirlevel = ""
>   Sub1Direvel = "../"
>SubSub1:Dirlevel = "../../"
>   Sub2Dirlevel = "../
>
>
>   When you create your include, make all the paths relative to the root
> directory and add dirlevel in there.
>
> Home
> Page 1
> etc.. etc..
>
>   This makes it easy, and I do it all the time.
>   One potential problem is that you'll need different application.cfm for
> each directory.

This technique may be useful in some cases, although I'm not sure that it's
worth it.  I'll probably just stick to hardcoding the ../../  etc levels in
each CFINCLUDE statement.
Thanks for the tip!

>
> >I have tried a variety of absolute paths and find none that work.  If
anyone
> >can shed some light on this...my host shares the CF server so asking them
to
> >configure a mapping for "/" is not going to happen since it would only
work
> >for my domain and not for all the other domains they host.
>
>You can always get to the exact root directory (I.E. www.mysite.com/ )
> by using the slash.  So the code I wrote above could easily be re-written
like:
>
> Home
> Page 1
>
>   And the browser sees the '/' and automatically adds it to the end of the
> url, such as www.mysite.com/index.cfm for the first link.  Try it; It
> works.  However, if the root directory of your application is not the root
> directory of your server, that won't work.

It may work for  but not for  tag.  That is the
whole point of my discussion.  CFINCLUDE is very picky...it appears it ONLY
sees relative paths or paths specified in the server mapping file.  That's
IT!  How I wish it recognized "/" as the web root, meaning the placeholder
or representative location for http://www.mydomain.com/.

Bruce
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Jeffry Houser

  I didn't see the original post, so I'm jumping in the middle.

At 08:15 AM 09/25/2001 -0700, you wrote:
>What I am wanting is a relative path but relative to the web root...for
>portability.
>
>I have an include file that I want to include by specifying the same path
>every time in all files in the hierarchy.  So I put this include file in
>/global directory and want to reference it by "/global/foo.cfm", which if it
>worked, would be the same include line in all files in my web site.  But
>this path does not work for includes.

  The way I do this is by setting a variable ( Either to the local scope or 
the request scope ) in the application.cfm called DirLevel:

Root: Dirlevel = ""
  Sub1Direvel = "../"
   SubSub1:Dirlevel = "../../"
  Sub2Dirlevel = "../


  When you create your include, make all the paths relative to the root 
directory and add dirlevel in there.

Home
Page 1
etc.. etc..

  This makes it easy, and I do it all the time.
  One potential problem is that you'll need different application.cfm for 
each directory.


>I have tried a variety of absolute paths and find none that work.  If anyone
>can shed some light on this...my host shares the CF server so asking them to
>configure a mapping for "/" is not going to happen since it would only work
>for my domain and not for all the other domains they host.

   You can always get to the exact root directory (I.E. www.mysite.com/ ) 
by using the slash.  So the code I wrote above could easily be re-written like:

Home
Page 1

  And the browser sees the '/' and automatically adds it to the end of the 
url, such as www.mysite.com/index.cfm for the first link.  Try it; It 
works.  However, if the root directory of your application is not the root 
directory of your server, that won't work.



--
Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Fax / Phone: 860-223-7946
--
I'm looking for a room-mate in the Hartford CT area, starting in October
--
DotComIt: Database Driven Web Data
My Book: Instant ColdFusion 5.0  | http://www.instantcoldfusion.com
--
Far Cry Fly, Alternative Folk Rock
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
--
A friend is someone who knows how to spell your name.
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Absolute Path Usage

2001-09-25 Thread Bruce Holm

What I am wanting is a relative path but relative to the web root...for
portability.

I have an include file that I want to include by specifying the same path
every time in all files in the hierarchy.  So I put this include file in
/global directory and want to reference it by "/global/foo.cfm", which if it
worked, would be the same include line in all files in my web site.  But
this path does not work for includes.

I have tried a variety of absolute paths and find none that work.  If anyone
can shed some light on this...my host shares the CF server so asking them to
configure a mapping for "/" is not going to happen since it would only work
for my domain and not for all the other domains they host.

The only workaround I can think of is create some code that looks at the
absolute template location and calculate what level the template is in and
set the relative path accordingly... not very idea.

Or just hard code the include path in each file on a file by file basis.

Bruce

- Original Message -
From: "Peter Tilbrook" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 5:10 AM
Subject: RE: Absolute Path Usage


> Relative paths are recommended, if more for portability that anything
else.
>
> 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-25 Thread Peter Tilbrook

Relative paths are recommended, if more for portability that anything else.

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Absolute Path Usage

2001-09-24 Thread Gary P. McNeel, Jr.

You need a mapping setup in the CF Administrators by the hosting company, if
they will do that for you.

-Gary

> -Original Message-
> From: Bruce Holm [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 11:30 AM
> To: CF-Talk
> Subject: Absolute Path Usage
>
>
> I have a NT based hosting company hosting a domain for me.  They support
> CF and Access for the db.
> When I use CFINCLUDE relative paths work fine.  But I'm finding that if
> I specify an absolute path starting with the web root "/" it doesn't
> find the template.  For example I have a "global" directory in the top
> level directory.  If I try to CFINCLUDE template="/global/foo.cfm" it
> won't find it.
>
> How can I use absolute paths in this situation?  Is there a function or
> code segment that will tell me how to reference templates using an
> absolute path?  I tried the GetBaseTemplatePath() function but it
> returns a path from the machine root "d:\html\users\...\html\..." which
> when used as an absolute path doesn't seem to work either.
>
> -
> Bruce Holm - Web Programmer
> Lattice Semiconductor Corp.
> [EMAIL PROTECTED]
> -
>
>
> 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists