Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

current path

Posted on 2000-03-07
7
Medium Priority
?
209 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 10 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
Suggested Courses

926 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