current path

how to check the current location path using cold fusion ?

asp is  server.mappath("/")
the result is D:\wwwroot\web\test

but for coldfusion is how ?
loongAsked:
Who is Participating?
 
nathansConnect With a Mentor Commented:
Why so little Points?


Here is your answer..

#CF_TEMPLATE_PATH#
or
#PATH_TRANSLATED#

Check out my ColdFusion Tips Plus e-ZINE

http://www.nsnd.com/cftips
or send a blank email to
subscribe-cftips@nsnd.com

0
 
samphiCommented:
Try...

#CGI.CF_TEMPLATE_PATH#
or
#CGI.PATH_INFO#

Phil...
0
 
samphiCommented:
Yes, It function without Point too...

It is right to let him know that it is a variable cgi...

Phil.
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
samphiCommented:
nathans,
I know that you likes to pick the score... ;o)

Phil
0
 
nathansCommented:
Sorry, Samphi I was typing when you submitted that is all.  If you look at the time on my post.

0
 
pdlilesCommented:
Why not use a simply JAVASCRIPT in the footer or header of a page???

Like...



<p align="left"><font face="arial" size="1"><b>You are here:</b> <script
LANGUAGE="JavaScript">
<!-- window.location.protocol + "//" +  goes ahead of path!-->

<!-- Begin
var path = "";
var href = document.location.href;
var s = href.split("/");
for (var i=2;i<(s.length-1);i++) {
path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"/\">"+s[i]+"</A> > ";
}
i=s.length-1;
path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"\">"+s[i]+"</A>";
var url = path;
document.writeln(url);
// End -->
</script> </font></p>
0
 
loongAuthor Commented:
thank
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.