Solved

current path

Posted on 2000-03-07
7
193 Views
Last Modified: 2013-12-24
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 ?
0
Comment
Question by:loong
7 Comments
 

Expert Comment

by:samphi
ID: 2591447
Try...

#CGI.CF_TEMPLATE_PATH#
or
#CGI.PATH_INFO#

Phil...
0
 
LVL 5

Accepted Solution

by:
nathans earned 5 total points
ID: 2591460
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
 

Expert Comment

by:samphi
ID: 2593040
Yes, It function without Point too...

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

Phil.
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Expert Comment

by:samphi
ID: 2593050
nathans,
I know that you likes to pick the score... ;o)

Phil
0
 
LVL 5

Expert Comment

by:nathans
ID: 2593625
Sorry, Samphi I was typing when you submitted that is all.  If you look at the time on my post.

0
 

Expert Comment

by:pdliles
ID: 2594310
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
 

Author Comment

by:loong
ID: 2594337
thank
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now