Erick,


Sorry to break it to you, but I don't that's achievable.


You can get the root of CF by calling an empty ExpandPath():

#ExpandPath("")#


But that just gives you ColdFusion's root, which isn't necessarily going to
be your web server root.


IMO, the best thing to do to handle general location-ing(?) is to create a
root mapping yourself.  Make a mapping called "/" that points to the web
server root, then everything should fall into place after that.  If you are
on a hosted server, kindly ask the admins to create one for you, or create a
more specific mapping for each site of yours.  If they can't do either of
these very basic, necessary tasks...dump 'em, there are plenty of shared
hosting providers out there that will.


Other than with a mapping, CF has no idea what the root of your web server
is.  I've searched long and hard, there's just no definitive
variable/function out there->


Tyler


   _____  

From: Calder, Erick [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 7:32 PM
To: CF-Talk
Subject: RE: web server document root?

> I usually add an Application.cfm to the root of a site

what I'm asking for though is not the root of my site but the document
root of the web server

> Another thing that infuriates me is a custom tag's
> lack of ability to establish the location of
> the template that called it without resorting to
> questionable tricks.

GetBaseTemplatePath() ?

**********************************************************************
E-mail sent through the Internet is not secure. Western Asset therefore
recommends that you do not send any confidential or sensitive information to
us via electronic mail, including social security numbers, account numbers,
or personal identification numbers. Delivery, and or timely delivery of
Internet mail is not guaranteed. Western Asset therefore recommends that you
do not send time sensitive or action-oriented messages to us via electronic
mail.
**********************************************************************
   _____  

[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=t:4"Todays Threads]
[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=i:4:172521"This
Message] [HYPERLINK
"http://www.houseoffusion.com/lists.cfm/link=s:4"Subscription] [HYPERLINK
"http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=3902.3642.4"Fast
Unsubscribe] [HYPERLINK "http://www.houseoffusion.com/signin/"User Settings]
[HYPERLINK
"https://www.paypal.com/cgi-bin/webscr?amount=&item_name=House+of+Fusion&bus
iness=donations%40houseoffusion.com&undefined_quantity=&cmd=_xclick"Donation
s and Support]
   _____  

HYPERLINK "http://www.houseoffusion.com/banners/view.cfm?bannerid=34" \n

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.726 / Virus Database: 481 - Release Date: 7/22/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.726 / Virus Database: 481 - Release Date: 7/22/2004
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to