House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Cgi script name

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi all,
Mark Leder
07/13/03 07:52 P
Yep, works. hadn't thought of that one.
Mark Leder
07/13/03 08:00 P
I think that works... there's also
S. Isaac Dealey
07/13/03 11:43 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark Leder
07/13/2003 07:52 PM

Hi all, I have a cgi.script_name output as /contact/default.cfm How do I strip the characters after the last "/" so I can place in a var as "/contact/" and use for further processing? Thanks, Mark

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Walker
07/13/2003 07:54 PM

How about getdirectoryfrompath(cgi.script_name) ? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark Leder
07/13/2003 08:00 PM

Yep, works. hadn't thought of that one. Thanks, Mark How about getdirectoryfrompath(cgi.script_name) ? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
S. Isaac Dealey
07/13/2003 11:43 PM

I think that works... there's also rereplace(cgi.script_name,"(.*/).*","\1") ----- Excess quoted text cut - see Original Post for more ----- s. isaac dealey                972-490-6624 new epoch                      http://www.turnkey.to lead architect, tapestry cms   http://products.turnkey.to tapestry api is opensource     http://www.turnkey.to/tapi team macromedia volunteer      http://www.macromedia.com/go/team certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

September 06, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30