??? You lost me?
Is not #expandpath("/")# supposed to return the absolute directory of the
webroot that the template is in? For example, if the webroot of a website
is defined in IIS to be e:/intranet and a file located at
e:/intranet/includes/common/header.cfm runs the function #expandpath("/")#,
the value returned should be "E:/intranet". Then you should be able to use
this value in tags and functions that require an absolute path such as
<cffile>.
I have used constructs such as this many times since CF4.5 days. But, on
one MX box it caused me a problem because the function wasn't returning the
absolute path of the webroot for the website the template was in,
("e:/intranet") in my example, rather it returned the absolute path of the
CF stand-alone web server webroot ("c:/cfusionMX") by default I believe. A
directory that the template was not in, or any templates for that matter.
I also remember, finding a technote the discussed this, and modifying an XML
file to correct the behavior. Basically something about the default order
of searches when multiple web roots exits, or something along those lines.
I thought disabling the stand-alone server would solve this problem, but it
has not.
I just can't remember either the technote nor the XML file, and I not
finding in searches of the TechNotes. I was hoping somebody could fill-in
the gaps in my memory.
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 11:59 AM
To: CF-Talk
Subject: Re: Expandpath() is returning the wrong path.
On Thursday, Sep 18, 2003, at 11:40 US/Pacific, Ian Skinner wrote:
> I have an expandpath("/") and it is returning the path of the
> ColdFusion
> standalone web server web-root (c:/cfusionmx/wwwroot) rather then the
> correct web root of the IIS website (d:/websites/bloodsource).
But expandPath() only knows about the ColdFusion root - it can't
possibly know about the web server root.
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137577
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm