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
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://
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
-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
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
$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
-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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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. ?
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:
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
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
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
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
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
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
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
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
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
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
#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
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
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?
|
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
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
39 matches
Mail list logo