Yep -- I got the same thing -- To make things work on both Apache and IIS,
I ended up adding a check for it within an <CFIF...> statement and
stripping it off if there was a "/\" at the end -- see following code -- go
figure...
<CFSET PATH=GETDIRECTORYFROMPATH(#CGI.CF_TEMPLATE_PATH#)>
<CFIF RIGHT(#PATH#,2) EQ "/\">
<CFSET mLLL = LEN(TRIM(#PATH#))>
<CFSET PATH = LEFT(#PATH#,mLLL-1)>
</CFIF>
^
/ \__
( @\___
/ O
/ (_____/
/_____/
Whoof...
410-757-3487
-----Original Message-----
From: sebastian palmigiani [SMTP:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 1:27 PM
To: CF-Talk
Subject: Apache and trailing back slash
I do not understand why you get trailing back slash when using
GetDirectoryFromPath with Apache web server
<cfoutput>#GetDirectoryFromPath(CGI.CF_TEMPLATE_Path)#</cfoutput>
In other words I get
c:/program files/apache group/apache/htdocs/members/om/archive/adu/\
Why is there a trailing back slash? How do I get rid of it?
Sebastian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists