I do basically the same thing so the application picks up paths based on
which server it is running from.

I don’t use expandpath() though. For me, expandPath('/') gives the wwwroot
of the CF install directory and NOT the path relative to my IIS setup.

Example...

<a href="/">asd</a> would go to the top of my web site's directory structure
which is:
D:\webroot\testing\www\

But expandPath('/') doesn’t give me that, it gives:
C:\CFusionMX\wwwroot\

So I use:
replacenocase(GetDirectoryFromPath(GetCurrentTemplatePath()), "\include\",
"")

this is called from a directory just off the root of any of my applications
called '\include\' so the replace gets rid of that and leaves just the '
D:\webroot\testing\www\'

But now I'm curious... is that the normal behavior of expandpath()?

#Expandpath('.')# returns the correct path apparently... the directory it is
being called from so why does expandpath('/') and expandpath('\') return the
install directory's wwwroot folder?
 
I've only tested that here on my local dev box and not on the demo or
production servers.


..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.15.6/568 - Release Date: 12/4/2006
3:20 PM
 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262817
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to