I should probably have a UDF like ListRestReverse() to do that, 'cause
I've
done it in a number of places... but I don't. :P There might be one on
cflib.org tho... I haven't checked.
Why??? I'm so confused!!!
Why on earth, how on earth, do so many people come up with a double
negative for
I am trying to get a fully resolved directory (i.e.
http://www.mysite.com/this/is/a/directory/) from a fully resolved URL
(i.e. http://www.mysite.com/this/is/a/directory/and_this_is_a_file.cfm)
that I am passing in, but I am having difficulty in finding a simple and
elegant way to do so.
I
Check the CF Function list.
getTemplatePath() will do what you want...
Stephen
- Original Message -
From: Pete Ruckelshaus [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 4:32 PM
Subject: How to get directory from full URL?
I am trying to get a fully
Or if I've got the wrong end of the stick
thispath = ListDeleteAt(cgi.script_name,ListLen(cgi.script_name,/),/);
Stephen
- Original Message -
From: Pete Ruckelshaus [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 4:32 PM
Subject: How to get directory
-
From: Stephen Moretti [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 11:44 AM
Subject: Re: How to get directory from full URL?
Check the CF Function list.
getTemplatePath() will do what you want...
Stephen
- Original Message -
From: Pete
You can use this
#Reverse(ListRest(Reverse(HTTP_REFERER),/))#/
-Original Message-
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 12:05 PM
To: CF-Talk
Subject: Re: How to get directory from full URL?
It does and it doesn't.
The application I am
Mr. Dealey gets a cookie!
Thanks! I never even thought about using reverse() twice...
Pete
- Original Message -
From: S. Isaac Dealey [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 11:39 AM
Subject: Re: How to get directory from full URL?
I am
Reverse(ListRest(Reverse(fullurl),/))
Oooh, that's just durn purty.
Kevin Graeme
__
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
cfset
fullyresolvedURL=http://www.mysite.com/this/is/a/directory/and_this_is_a_fi
le.cfm
cfset
fullyresolvedDir=ListDeleteAt(fullyresolvedURL,ListLen(fullyresolvedURL,/)
,/)
-Original Message-
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 11:33 AM
Reverse(ListRest(Reverse(fullurl),/))
Oooh, that's just durn purty.
Double negative?? You're all sick and twisted individuals ;o)
Why not just take the last item off the end of the list?
ListDeleteAt(fullurl,ListLen(fullurl,/),/)
Having had a look through the various CF functions,
.
-Original Message-
From: Kevin Graeme [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 11:34 AM
To: CF-Talk
Subject: RE: How to get directory from full URL?
Reverse(ListRest(Reverse(fullurl),/))
Oooh, that's just durn purty.
Kevin Graeme
PROTECTED]
WWW: http://www.evoch.com/
-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 1:34 PM
To: CF-Talk
Subject: RE: How to get directory from full URL?
Actually, the way that works with testing is:
#Reverse(ListRest(Reverse
.
If you have received this communication in error, please notify us at the
e-mail listed above.
-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 12:56 PM
To: CF-Talk
Subject: RE: How to get directory from full URL?
Pardon? Reversed
://www.evoch.com/
-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 2:14 PM
To: CF-Talk
Subject: RE: How to get directory from full URL?
And here is my example, based on the question at hand:
Path_Translated = F:\Websites\4ComPart
#GetDirectoryFromPath(url)# should bring the directory
-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 2:37 PM
To: CF-Talk
Subject: RE: How to get directory from full URL?
Ahh... PATH_TRANSLATED.
You're right (not that you need me
! I never even thought about using reverse()
twice...
Pete
- Original Message -
From: S. Isaac Dealey [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 11:39 AM
Subject: Re: How to get directory from full URL?
I am trying to get a fully resolved
16 matches
Mail list logo