<cfoutput>
#CGI.HTTP_HOST#/listLast(GetDirectoryFromPath(GetCurrentTemplatePath()),'/')
</cfoutput>
Quick n Dirty....
________________________________
From: James Buckingham [mailto:[EMAIL PROTECTED]
Sent: 05 April 2004 14:41
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Current Directory
Thanks for the quick replies guys.
Unfortunately neither of them are giving me the result I need as
both gave me the following absolute address:
www.mysite.com/home/
...rather than just the word home.
Any other ideas?
Cheers again,
James
-----Original Message-----
From: Lucas Sherwood [mailto:[EMAIL PROTECTED]
Sent: 05 April 2004 14:09
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Current Directory
This should do it!
listLast(GetDirectoryFromPath(GetCurrentTemplatePath()),'/')
L.
________________________________
From: James Buckingham [mailto:[EMAIL PROTECTED]
Sent: 05 April 2004 2:10 PM
To: '[EMAIL PROTECTED]'
Subject: [ cf-dev ] Current Directory
Afternoon guys,
Just a quick question today. How do I find out the current directory
that my Cold Fusion file is currently sitting in.
For example, if I have a Cold Fusion file called test.cfm at the
following address:
www.mysite.com/home/test.cfm
and I wanted to extract the folder name 'home' from here and insert
it into my variable how would I do that?
Cheers in advance.
JamesB
This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540. It contains information which is
confidential and may also be privileged. It is for the exclusive use of the
intended recipient(s). If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful. If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910. The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by
activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]