Solved

current path

Posted on 2000-03-07
7
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Webserver access problem 5 77
SSL sertificate 5 75
DNS, website, godaddy 6 95
javascript to html map 8 114
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
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. …

730 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