Solved

current path

Posted on 2000-03-07
7
197 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIS 8.5 2 52
Has my website been infiltrated? 21 64
http to https 3 60
How to install a renewed SSL certificate on Windows 2012 server 7 71
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

786 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