RE: Quick help on a mod rewrite rule

2007-02-12 Thread Steve Brownlee
Mark, What web server are you using? Steve Brownlee http://www.fusioncube.net/ -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 11:48 AM To: CF-Talk Subject: Quick help on a mod rewrite rule I apologize for those of you who may have

RE: Quick help on a mod rewrite rule

2007-02-12 Thread Russ
Well I'm not going to do a very good job without seeing the rest of the samples... but something like this: RewriteCond %{HTTP_HOST}^www.wheretobuild.com$ [NC] RewriteCond %{REQUEST_URI} ^/States/xq/ASP/StateName\.(.+)+/qx/index.htm$ [NC] RewriteRule ^/(.*)$ http://

RE: Quick help on a mod rewrite rule

2007-02-12 Thread Russ
Pretty sure it's apache, since he mentioned mod_rewrite... Russ -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 11:53 AM To: CF-Talk Subject: RE: Quick help on a mod rewrite rule Mark, What web server are you using? Steve

Re: Quick help on a mod rewrite rule

2007-02-12 Thread Ryan Stille
-Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 11:53 AM To: CF-Talk Subject: RE: Quick help on a mod rewrite rule Mark, What web server are you using? Steve Brownlee http://www.fusioncube.net/ -Original Message

RE: Quick help on a mod rewrite rule

2007-02-12 Thread Mark A Kruger
Actually no ... It's IIS - but I'm using an ISAPI filter that mimics mod rewrite... -mark -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 10:57 AM To: CF-Talk Subject: RE: Quick help on a mod rewrite rule Pretty sure it's apache, since he

RE: Quick help on a mod rewrite rule

2007-02-12 Thread Mark A Kruger
$2 Does that syntax look familiar to anyone? -mark -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 10:57 AM To: CF-Talk Subject: RE: Quick help on a mod rewrite rule Well I'm not going to do a very good job without seeing the rest

RE: Quick help on a mod rewrite rule

2007-02-12 Thread Russ
-Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 12:24 PM To: CF-Talk Subject: RE: Quick help on a mod rewrite rule This would possibly work except it is not flexible. I have other URLs that contain params.. Sometimes more than 1. I need

RE: Quick help on a mod rewrite rule

2007-02-12 Thread Dave Watts
Well I think that's the problem right there... you're not using Apache and mod_rewrite. I know I can probably figure out the syntax, but I'll let one of the people who claim that IIS is just as good as apache lend a hand... since they use the functionality in IIS all the time... I'll

RE: Quick help on a mod rewrite rule

2007-02-12 Thread Russ
really be of more help without knowing what the rest of the url's look like. Russ -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 12:24 PM To: CF-Talk Subject: RE: Quick help on a mod rewrite rule This would possibly work except

RE: Quick Help

2004-03-17 Thread J E VanOver
Subject: RE: Quick Help Like inside a page? cfset start = GetTickCount() / ... ... ... cfoutput#GetTickCount()-start# ms /cfoutput -Stace _ From: Matthew Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 4:59 PM To: CF-Talk Subject: Quick Help I forgot the function

RE: Quick Help

2004-03-16 Thread Ben Densmore
I think it's getTickCount(). Ben -Original Message- From: Matthew Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 4:59 PM To: CF-Talk Subject: Quick Help I forgot the function to get the time a page took to process in CF (ie like in the debugger) I need to run a large

RE: Quick Help

2004-03-16 Thread Michael T. Tangorre
GetTickCount()? If so, remember to run it at the top of the page and at the bottom then get the difference... Mike I forgot the function to get the time a page took to process in CF (ie like in the debugger) I need to run a large scheduled task each night and I would like to see how

RE: Quick Help

2004-03-16 Thread Jerry Johnson
Or put it in your Application.cfm and onRequestEnd.cfm files. (Obvious, but you took my answer) Jerry Johnson [EMAIL PROTECTED] 03/16/04 04:48PM GetTickCount()? If so, remember to run it at the top of the page and at the bottom then get the difference... Mike I forgot the function to get

RE: Quick Help

2004-03-16 Thread Stacy Young
Like inside a page? cfset start = GetTickCount() / ... ... ... cfoutput#GetTickCount()-start# ms /cfoutput -Stace _ From: Matthew Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 4:59 PM To: CF-Talk Subject: Quick Help I forgot the function to get the time a page

RE: quick help with converting from asp

2004-03-08 Thread Dave Watts
This is just a guess; I haven't played around with this stuff in a while. //unsure of this code Set xmlHTTP= Server.CreateObject(Msxml2.XMLHTTP.4.0) cfset xmlHTTP = CreateObject(com, Msxml2.XMLHTTP.4.0) //unsure of this code xmlHTTP.Open GET, weatherGet, False xmlHTTP.Send cfset

RE: quick help with converting from asp

2004-03-08 Thread cf
thanks Dave i figured it would use CFHTTP but i havent played with that to much yet This is just a guess; I haven't played around with this stuff in a while. //unsure of this code Set xmlHTTP= Server.CreateObject(Msxml2.XMLHTTP.4.0) cfset xmlHTTP = CreateObject(com, Msxml2.XMLHTTP.4.0)

RE: Quick Help

2002-07-25 Thread Chris Lofback
GetFileFromPath(CGI.SCRIPT_NAME) Chris Lofback Sr. Web Developer TRX Integration 28051 US 19 N., Ste. C Clearwater, FL 33761 www.trxi.com -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:35 AM To: CF-Talk Subject: Quick Help I

Re: Quick Help

2002-07-25 Thread todd
cfset myVar = GetFileFromPath(cgi.script_name) On Thu, 25 Jul 2002, Kris Pilles wrote: I know I asked yesturday and got the answer but all of our emails have been purged so Can someone quick tell me how to grab just the page name from the browser... For example I want to set

RE: Quick Help

2002-07-25 Thread Jillian Carroll
If all you want is the index.html part of the path, I use this: ListLast(cgi.script_name,/) -Original Message- From: Chris Lofback [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 9:31 AM To: CF-Talk Subject: RE: Quick Help GetFileFromPath(CGI.SCRIPT_NAME) Chris Lofback Sr

RE: Quick Help

2002-07-25 Thread Christopher Olive
Believe it's ListLast(CGI.script_name, /). this is OTC, so you might want to check the name of the CGI variable. -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:35 AM To: CF-Talk Subject: Quick Help I know I asked yesturday and got the

RE: Quick Help

2002-07-25 Thread Cornillon, Matthieu
Kris, Just for future reference: you can also take a look at the archives, a link to which should appear at the bottom of just about every message on the list. Since one can often find multiple discussion threads on a topic, I've found these archives to be a tremendous resource. Hope this is

RE: Quick Help

2002-07-25 Thread Kris Pilles
THANKS~!! -Original Message- From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 12:00 PM To: CF-Talk Subject: RE: Quick Help Kris, Just for future reference: you can also take a look at the archives, a link to which should appear at the bottom of just

Re: Quick Help...

2002-07-24 Thread todd
cgi.script_name -- problem is, it contains more than just the .cfm name On Wed, 24 Jul 2002, Kris Pilles wrote: Can someone quick tell me how to grab just the page name from the browser... For example I want to set pagename = index.cfm How do I get the index.cfm CGI. ?

Re: Quick Help...

2002-07-24 Thread Charlie
cgi.CF_TEMPLATE_PATH=C:\folder\folder\index.cfm You could perform some string manipulation based on the fact the page name comes after the last instance of the backward slash '\'. - Original Message - From: Kris Pilles [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent:

RE: Quick Help...

2002-07-24 Thread Jillian Carroll
Kris, cgi.script_name will do that for you -- Jillian -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 12:42 PM To: CF-Talk Subject: Quick Help... Can someone quick tell me how to grab just the page name from the browser... For example I

RE: Quick Help...

2002-07-24 Thread Wallick, Mike
Just do a #ListLast(cgi.script_name, /)# to get the file name. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 1:54 PM To: CF-Talk Subject: Re: Quick Help... cgi.script_name -- problem is, it contains more than just the .cfm name

RE: Quick Help...

2002-07-24 Thread Jillian Carroll
I use this to grab 'just' the end: ListLast(cgi.script_name) -- Jillian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 12:54 PM To: CF-Talk Subject: Re: Quick Help... cgi.script_name -- problem is, it contains more than just

RE: Quick Help...

2002-07-24 Thread Chris Lofback
Use this: CFSET FileName = GetFileFromPath(CGI.SCRIPT_NAME) Chris Lofback Sr. Web Developer TRX Integration 28051 US 19 N., Ste. C Clearwater, FL 33761 www.trxi.com -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 2:42 PM To: CF-Talk

Re: Quick help

2002-06-24 Thread todd
Take a look at DateFormat() ~Todd On Mon, 24 Jun 2002, Kris Pilles wrote: I have a control year I need to trim the first 2 digits off of it inorder to use the last 2 in a date How can I do this? __ Structure your

Re: Quick help

2002-06-24 Thread Alex
substring On Mon, 24 Jun 2002, Kris Pilles wrote: I have a control year I need to trim the first 2 digits off of it inorder to use the last 2 in a date How can I do this? __ Structure your ColdFusion code with

RE: Quick help

2002-06-24 Thread Timothy Heald
cfset last2 = right(myVar, 2) That will only work if it's always four characters. Tim Heald ACP/CCFD :) Application Development www.schoollink.net -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 2:11 PM To: CF-Talk Subject: Quick help

RE: Quick help

2002-06-24 Thread Larry Juncker
What about: Right(ControlYr,2) -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 1:11 PM To: CF-Talk Subject: Quick help I have a control year I need to trim the first 2 digits off of it inorder to use the last 2 in a date How can I do

RE: Quick help

2002-06-24 Thread Kris Pilles
I know. Its harder then that.. I'll figure it out I cant type it all in here lol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 2:11 PM To: CF-Talk Subject: Re: Quick help Take a look at DateFormat() ~Todd

RE: Quick help

2002-06-24 Thread Brian Fox
There's no real types in ColdFusion. So, just treat the year as a string. cfset myyear=1990 cfset yy=right(myyear,2) cfset century=left(myyear,2) The variables yy and century will automagically typecast back to integers if you use them as integers. Not quite sure what you're trying to do, but

Re: Quick help

2002-06-24 Thread Shawnea Carter
#dateformat(mydate,yy)# Shawnea Carter - Original Message - From: Kris Pilles [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 24, 2002 2:11 PM Subject: Quick help I have a control year I need to trim the first 2 digits off of it inorder to use the last 2 in a

RE: Quick help

2002-06-24 Thread Timothy Heald
or at least always the last two characters. Tim Heald ACP/CCFD :) Application Development www.schoollink.net -Original Message- From: Timothy Heald [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 2:17 PM To: CF-Talk Subject: RE: Quick help cfset last2 = right(myVar, 2

Re: Quick help

2002-06-24 Thread Mike Sprague
RemoveChars(theYear, 1, 2) *** REPLY SEPARATOR *** On 6/24/02 at 2:11 PM Kris Pilles wrote: |I have a control year |I need to trim the first 2 digits off of it inorder to use the last 2 in |a date | |How can I do this? |

RE: Quick help

2002-06-24 Thread Kris Pilles
Thanks... I got it. Everyonce and a while I just forget the stupidest things... -Original Message- From: Larry Juncker [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 2:13 PM To: CF-Talk Subject: RE: Quick help What about: Right(ControlYr,2) -Original Message

Re: Quick help

2002-06-24 Thread Randell B Adkins
a few ways to obtain the last two elements of a field: MID(MYFIELD,3,2): Meaning Start at the 3rd character and grab the next two RIGHT(MYFIELD,2) Obtains the last two characters of the string [EMAIL PROTECTED] 06/24/02 02:11PM I have a control year I need to trim the first 2 digits off