Re: How to get directory from full URL?

2002-10-02 Thread Stephen Moretti
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

Re: How to get directory from full URL?

2002-10-01 Thread S . Isaac Dealey
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

Re: How to get directory from full URL?

2002-10-01 Thread Stephen Moretti
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

Re: How to get directory from full URL?

2002-10-01 Thread Stephen Moretti
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

Re: How to get directory from full URL?

2002-10-01 Thread Pete Ruckelshaus
- 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

RE: How to get directory from full URL?

2002-10-01 Thread Bryan F. Hogan
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

Re: How to get directory from full URL?

2002-10-01 Thread Pete Ruckelshaus
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

RE: How to get directory from full URL?

2002-10-01 Thread Kevin Graeme
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.

RE: How to get directory from full URL?

2002-10-01 Thread Everett, Al
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

Re: How to get directory from full URL?

2002-10-01 Thread Stephen Moretti
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,

RE: How to get directory from full URL?

2002-10-01 Thread Larry Juncker
. -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

RE: How to get directory from full URL?

2002-10-01 Thread Mosh Teitelbaum
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

RE: How to get directory from full URL?

2002-10-01 Thread Larry Juncker
. 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

RE: How to get directory from full URL?

2002-10-01 Thread Mosh Teitelbaum
://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

RE: How to get directory from full URL?

2002-10-01 Thread Subramanian, Samy
#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

Re: How to get directory from full URL?

2002-10-01 Thread S . Isaac Dealey
! 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