Re: Reliably stripping out only the email address?

2004-06-10 Thread Mike Townend
Hi, We tend to use this... //This function returns everything between a and a function ExtractEmail(sString) { return trim(ReReplace(sString, .*([^]*).*, \1)); } and seems to be working OK HTH Jedi Bryan F. Hogan wrote: Does anyone have a Regex they can share that reliably strips out

Re: Reliably stripping out only the email address?

2004-06-10 Thread Mike Townend
CFSCRIPT function ExtractEmail(sString) { return trim(ReReplace(sString, .*([^]*).*, \1)); } /CFSCRIPT CFSET lstEmails = '[EMAIL PROTECTED],[EMAIL PROTECTED],DisplayName [EMAIL PROTECTED],DisplayName [EMAIL PROTECTED],[EMAIL PROTECTED] (DisplayName)' CFLOOP LIST=#lstEmails# INDEX=idxFoo

RE: Compare files in directories?

2004-05-24 Thread Mike Townend
http://www.fileware.com/ do a filesyc product that in conjuntion with filediff should be helpfull HTH -Original Message- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: Monday, May 24, 2004 19:44 To: CF-Talk Subject: Compare files in directories? Does anyone know of a good,

RE: price of aspx vs cfm

2004-05-05 Thread Mike Townend
http://tinyurl.com/2ddpx http://slashdot.org/articles/04/05/05/0443213.shtml?tid=106tid=185tid=190 http://slashdot.org/articles/04/05/05/0443213.shtml?tid=106tid=185tid=190 tid=201 Theres a Beta of Mono out that should allow .Net to run on linux -Original Message- From: John Ho

RE: downloading .exe from website

2004-05-05 Thread Mike Townend
check urlscan.ini usually found somewhere like c:\winnt\system32\inetsvr\urlscan\ it will probably have .exe files as not allowed -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 5, 2004 18:04 To: CF-Talk Subject: RE: downloading .exe from website its

RE: CFML from a DB

2004-04-19 Thread Mike Townend
Something like CFOUTPUT#Evaluate(DE(Form.Text))#/CFOUTPUT HTH -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 14:53 To: CF-Talk Subject: CFML from a DB If I have a constant variable such as #request.dsn# And I want to enter it into

RE: creating 404 page for CFM and JSP files.

2004-04-01 Thread Mike Townend
you could install ISAPI_ReWrite and setup a rule like... # Convery .jsp to .cfm RewriteRule (.*)\.jsp $1.cfm Thats what we're using on one of our servers... HTH -Original Message- From: Dan Phillips [mailto:[EMAIL PROTECTED] Sent: Thursday, April 1, 2004 16:18 To: CF-Talk Subject:

RE: Redirect cferror

2004-03-23 Thread Mike Townend
you could have a look at ISAPI_REWrite, http://www.isapirewrite.com/ HTH -Original Message- From: A.Little [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 11:39 To: CF-Talk Subject: Redirect cferror Hi all, We're in the process of combining our dept focussed intranet

RE: Redirect cferror

2004-03-23 Thread Mike Townend
in iis make sure the for .cfm extensions it checks for the existance of the file, that way it will then trigger the custom 404 HTH -Original Message- From: A.Little [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 12:04 To: CF-Talk Subject: RE: Redirect cferror Thanks Pascal

RE: Grabbing username account from Windows login screen

2004-03-16 Thread Mike Townend
Assuming you use IE (as Integrated Windows Authentication (AFAIK) only works on IE) then IE will try to send your currently logged in username and password to the server.If the server doesnt find a match for this then it sends back to the browser a login failure which then prompts IE to prompt the

RE: Wordaround for Linux...

2004-03-15 Thread Mike Townend
you could give this function a go http://www.cflib.org/udf.cfm?ID=1019 HTH -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 3, 2004 13:13 To: CF-Talk Subject: Re: Wordaround for Linux... On Sat, 2004-03-13 at 16:31, Doug White wrote: It appears that

RE: String index out of range: 0

2004-03-08 Thread Mike Townend
you could try rewriting it to something like CFIF StructKeyExists(Form, formVar) AND Len(Form[formVar]) HTH -Original Message- From: Tim Do [mailto:[EMAIL PROTECTED] Sent: Monday, March 8, 2004 17:02 To: CF-Talk Subject: String index out of range: 0 Can anybody tell me what this

RE: How to know when you have the last record?

2004-02-26 Thread Mike Townend
CFIF myquery.CurrentRow NEQ myquery.RecordCount hth -Original Message- From: Jeff Fongemie [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 15:26 To: CF-Talk Subject: How to know when you have the last record? Hey, I'm outputting a query as a list. Visually, I'm inserting

RE: JRun has closed connection

2004-02-25 Thread Mike Townend
depends on what the server is doing at the time... We get this quite a bit on a site where we are using cfx tags to do image manipulation and pop mail access, it usually happens on the pop mail access... the only thing to do is cycle the server (as it doesnt raise an event in the services panel so

RE: Stored Procedures

2004-02-20 Thread Mike Townend
try adding a size to the varchar CREATE PROC GetMessages @fromid int, @toid int, @searchtext varchar(100) should work HTH -Original Message- From: Allan Cliff - CFUG Spain [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 10:25 To: CF-Talk Subject: Stored Procedures I am

RE: [cftalk] RE: Stored Procedures

2004-02-20 Thread Mike Townend
(1000) SET @query = 'SELECT * FROM Messages' SET @query = @query + ' WHERE 1=1' IF @searchtext '' SET @query = @query +'AND Message LIKE'+ '%' + @searchtext + '%' EXEC(@query) GO - Original Message - From: Mike Townend To: CF-Talk Sent: Friday, February 20, 2004 11:43 AM Subject

RE: MySQL and CF 5

2004-02-20 Thread Mike Townend
what does the query you are calling look like? -Original Message- From: Bud [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 13:50 To: CF-Talk Subject: MySQL and CF 5 Hi. I just got this response to a support request from Crystal Tech. CF 5 does not support DSNs using MySQL.

RE: Administrator mapping not working

2004-02-17 Thread Mike Townend
erm... might be off a little.. but the /CFIDE/scripts mapping is at the webserver level not CF HTH -Original Message- From: Alisa Thomson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 16:28 To: CF-Talk Subject: Re:Administrator mapping not working I have tried several

RE: accessing COM objects using Coldfusion

2004-02-10 Thread Mike Townend
What version of CF and Patch level are you using? -Original Message- From: David Ashworth [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 17:13 To: CF-Talk Subject: RE: accessing COM objects using Coldfusion Both Unzip and Unzip() produce the same error as an aside I tried

RE: Client Variables

2004-01-21 Thread Mike Townend
If you dont want to use sessions then you could use the timestamping thats included in client variables Client.LastVisit Client.TimeCreated And then in Application.cfm if Client.LastVisit is greater than say Now() - 10 minutes then run some code to log them out. HTH -Original

RE: MX 6.1 Internationalization

2004-01-19 Thread Mike Townend
briefly looking at the zip file... my first thoughts are that the Application.cfm file included in the root of that zip file is incorrect as it looks to be the CFIDE Application.cfm file rather than what I would assume to be a blank Application.cfm file Try removing the Application.cfm file and

RE: DateDiff

2004-01-19 Thread Mike Townend
add quotes around the n cfoutput#Abs(DateDiff(n, date1, date2))#/cfoutput -Original Message- From: JT [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 16:04 To: CF-Talk Subject: DateDiff why does this not work? cfset date1=2004-01-19 08:00:02 cfset date2=2004-01-19 09:04:08

RE: Vbscript and Coldfusion

2004-01-19 Thread Mike Townend
The easiest way would be to write a VB COM object that does the talking to the Active Directory and get CF to talk to a Method that returns a list or something like... HTH -Original Message- From: Jones, Becky [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 16:58 To: CF-Talk

RE: CFFile Move Error

2004-01-13 Thread Mike Townend
It could be that there is a file lock involved which will result in the move failing (as its a copy then delete).Change the code to do a copy instead of a move to see if it initially fixes the current problem you are having. If it does then I would suggest that you do this instead but setup a

RE: Two Destinations for POST form?

2004-01-12 Thread Mike Townend
Do an initial post to a local page, then insert these details.Then you can do a CFHTTP post to the SMS provider HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 12:47 To: CF-Talk Subject: Two Destinations for POST form? Afternoon

RE: Creating a Word.Application COM object needs a new instance o f WI NWORD.EXE?

2004-01-09 Thread Mike Townend
you havnt mentioned which version of CF you are using...If you are using 6.1 then there is a new function ReleaseObject() that may be of use to you. HTH -Original Message- From: Shawn Grover [mailto:[EMAIL PROTECTED] Sent: Friday, January 9, 2004 01:15 To: CF-Talk Subject: RE:

RE: Get URL

2004-01-09 Thread Mike Townend
theres a nifty little UDF on cflib called GetCurrentURL() which should do the job HTH -Original Message- From: Shahzad.Butt [mailto:[EMAIL PROTECTED] Sent: Friday, January 9, 2004 12:15 To: CF-Talk Subject: Get URL How can I get the current URL (from browser)? e.g. I type in

RE: CFGrid, CFForm and other cf tags that use applets

2004-01-08 Thread Mike Townend
reading a blog about MAX (Ben's I beleive) it was mentioned that the next version of CF would be using flash for these tags (CFGRID and CFTREE) rather than java HTH -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Thursday, January 8, 2004 13:54 To: CF-Talk Subject:

RE: Another CFGrid question.

2004-01-08 Thread Mike Townend
which version of CF are you using? I beleive that JRE 1.4 doesnt correctly post the form information for a CF5 CFGRID... -Original Message- From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 8, 2004 14:54 To: CF-Talk Subject: Another CFGrid question. All,

RE: CFGrid, CFForm and other cf tags that use applets

2004-01-08 Thread Mike Townend
was looking at the possibilities. I don't recall them ever saying that they were definitely using Flash instead of Java, or that the applet tags were definitely going away. The demos were all presented with the caveat that everything shown was speculative. -Kevin - Original Message - From: Mike

RE: Cfqueryparam bug and finding it globally.

2004-01-07 Thread Mike Townend
if you are using homesite, then you could do a find in files and point it to the root directory and include subdirs? HTH -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 7, 2004 16:16 To: CF-Talk Subject: Cfqueryparam bug and finding it

RE: Site-wide Error Handler in CFMX Admin

2003-12-30 Thread Mike Townend
is there a CF Mapping setup to point to c:\cftools ? the change between cf5 and MX means that instead of passing and absolute path you need to put a relative path to a CF mapping (not an IIS mapping) if your error template is set to c:\cftools\systemerror.cfm then add a mapping called

RE: SQL Server 2000 and Pagination

2003-12-22 Thread Mike Townend
i tend to use this... CREATE PROCEDURE [dbo].[spr_PagedItems] @Pageint, @RecsPerPage int, @Tournementint AS -- We don't want to return the # of rows inserted -- into our temporary table, so turn NOCOUNT ON SET NOCOUNT ON --Create a temporary table CREATE TABLE #TempItems ( tempID

RE: SQL Server 2000 and Pagination

2003-12-22 Thread Mike Townend
and Pagination Mike, That looks pretty good, what's the performance like on large recordsets, do you happen to know? Thanks, Calvin - Original Message - From: Mike Townend To: CF-Talk Sent: Monday, December 22, 2003 8:33 AM Subject: RE: SQL Server 2000 and Pagination i tend to use

RE: Adding remote datasource dynamically

2003-12-11 Thread Mike Townend
if you are running MX 6.1 then there are some CFC's which should help with this. -Original Message- From: Chunshen (Don) Li [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 14:36 To: CF-Talk Subject: Re:Adding remote datasource dynamically Hmm, I would beg to differ.I assumed

RE: Referencing a .CFC in a sub directory.

2003-12-09 Thread Mike Townend
For that to work (i.e. using dot notation for CFOBJECT) you must setup a CF mapping. Action="" Method=POST will work as its IIS/Apache/Whatever handling the path to the CFC. CFINVOKE/CFOBJECT/CreateObject use CF to get the path to the CFC so either the CFC must be in the same directory as

RE: cfqueryparam, Oracle and doubling single quotes (').

2003-12-08 Thread Mike Townend
you dont mention which version of CF you are using, but there is a problem with MX whereby if you use functions to deliver the content then the quotes dont get escaped correctly. i.e. CFSET sFoo = Homer's shirt is white CFQUERYPARAM VALUE=#Trim(sFoo)#... will produce double quotes

RE: cfqueryparam, Oracle and doubling single quotes (').

2003-12-08 Thread Mike Townend
, if/when the incorrect behavior in CFMX is corrected? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 7:48 AM To: CF-Talk Subject: RE: cfqueryparam

RE: Help with Q of Q

2003-12-03 Thread Mike Townend
if you are just after the SUM of the columns, you could try something like CFOUTPUT #ArraySum(ListToArray(ValueList(MasterQuery.Orig_amt)))# /CFOUTPUT HTH -Original Message- From: Mickael [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 3, 2003 13:33 To: CF-Talk Subject: Help

RE: Nulling or reseting password in MX 6.1

2003-12-03 Thread Mike Townend
CFusionMX\lib\neo-security.xml set the var name='admin.security.enabled' boolean value='true'/ /var to false HTH -Original Message- From: Schuster, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 3, 2003 15:57 To: CF-Talk Subject: Nulling or reseting password in

RE: Date format in access

2003-12-01 Thread Mike Townend
afaik Now() is already in this format, so you should be able to write either... CFQ INSERT INTO foo (dtWhatever) VALUES (#Now()#) or INSERT INTO foo (dtWhatever) VALUES (CFQUERYPARAM VALUE=#Now()# CFSQLTYPE=CF_SQL_TIMESTAMP) or maybe even the inbuild access object (for Now() anyway)

RE: Can get coldfusion to call the ADSystemInfo com object (ADSI)

2003-11-28 Thread Mike Townend
if you were to turn off anonymous access to the intranet then within theory IE will be told to logon to the site, it will attempt to send the currently logged on user details to the site to authenticate.If both the user is in the Active Dir and the site is (thus allowing access) then the username

RE: Image dimension tag that works on Linux

2003-11-28 Thread Mike Townend
if you are running MX or have java installed on there you could try... function getImageDimensions(sFile) { var strRtn = StructNew(); var oImage = createObject(java,javax.swing.ImageIcon).init(sFile); strRtn.Width = oImage.getIconWidth(); strRtn.Height = oImage.getIconHeight();

RE: Image dimension tag that works on Linux

2003-11-28 Thread Mike Townend
] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mike Townend To: CF-Talk Sent: Friday, November

RE: Anonymous access and authentication

2003-11-27 Thread Mike Townend
how about writing a wrapper COM object? thats what we did to get around lots of problems with creating Virtual Dirs on the fly HTH Mikey -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 12:12 To: CF-Talk Subject: Re:Anonymous access and

RE: Anonymous access and authentication

2003-11-27 Thread Mike Townend
if you have all the code that attachs to the ADSystemInfo object, then put these into private methods of say a VB com object, then create a public method which you pass in simple values which then calls the private methods. So in our case we have something like this in CF CFSCRIPT oPB =

RE: query.ColumnList Question

2003-11-27 Thread Mike Townend
you could potentially create a CF list and use that in the query instead, something like CFSET lstCols = id,foo CFQUERY SELECT #PreserveSingleQuotes(lstCols)# FROM... /CFQUERY CFLOOP List=#lstCols# INDEX=idxCol #qryFoo[idxCol][1]#br /CFLOOP HTH -Original Message- From: David

RE: Can get coldfusion to call the ADSystemInfo com object (ADSI)

2003-11-27 Thread Mike Townend
Subject: RE: Can get coldfusion to call the ADSystemInfo com object (ADSI) Did you try the cf_adsi tag? -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: November 27, 2003 8:39 AM To: CF-Talk Subject: Re:Can get coldfusion to call the ADSystemInfo com object (ADSI) Mike

RE: On the fly DSN creation, why?

2003-11-25 Thread Mike Townend
. Did you create a DTS to import from the uploaded spreadsheet? If so where does the DSN-less connection come into play? -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 12:14 PM To: CF-Talk Subject: RE: On the fly DSN creation, why? we wanted

RE: On the fly DSN creation, why?

2003-11-24 Thread Mike Townend
6.1 has some components listed in the component manager that can probably allow you to do this.MX didnt, I havnt tried using them so i dont know how effective they are. HTH -Original Message- From: Seibert Don R [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 03:42 To:

RE: On the fly DSN creation, why?

2003-11-24 Thread Mike Townend
we wanted to do it so that users were able to upload an excel spreadsheet, which could then be manipulated by other people over a period of time.At the time of writing there was no way to do it in MX that appeared to work. So we have a bank of datasources setup in CF which is then monitored by

RE: Query to structure

2003-11-19 Thread Mike Townend
You could try something like... CFQUERY NAME=qry... /CFQUERY CFSET strQuery = StructNew() CFLOOP LIST=#qry.ColumnList# INDEX=idxColumn CFSET strQuery[idxColumn] = qry[idxColumn][1] /CFLOOP CFDUMP VAR=#strQuery# HTH -Original Message- From: Ryan Mitchell [mailto:[EMAIL

RE: CF with Bluetooth (RETRACT)

2003-11-13 Thread Mike Townend
we use bluetooth here to link laptops up to the net via mobiles for meetings where there is no net connection. Basically Laptop via Bluetooth talks to the phone Phone uses GPRS to connect to the net et voila -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent:

RE: Screen Scraping

2003-11-06 Thread Mike Townend
Assuming that the Receiving function doesnt use the Flash scope, its just a webservice so you could call the .cfc?wsdl web service and pass the appropriate information into it ? -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Thursday, November 6, 2003 17:54 To:

RE: Screen Scraping

2003-11-06 Thread Mike Townend
setup now is that they sit outside of the webroot in a components directory. So I don't see this being a problem. Any other ways you can think of? Thanks for your reply Bryan -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:12 PM To: CF-Talk

RE: Flash Component Directory WAS RE: Screen Scraping

2003-11-06 Thread Mike Townend
yep, unless you have something like (in IIS) a virtual directory or equivelant then the flash components must be within the wwwroot, otherwise flash cant see the cfc's to call HTH -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Thursday, November 6, 2003 18:56

RE: Concatenating Queries

2003-11-05 Thread Mike Townend
you could do a UNION on a Query of a Query ? HTH -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 5, 2003 18:23 To: CF-Talk Subject: Concatenating Queries Does anyone know of an easy way to concatenate two queries? _ [Todays Threads]

RE: Concatenating Queries

2003-11-05 Thread Mike Townend
something like CFQUERY NAME=query3 DBTYPE=query SELECT * FROM query1 UNION SELECT * FROM query2 /CFQUERY HTH -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 5, 2003 18:34 To: CF-Talk Subject: RE: Concatenating Queries Ok it

RE: Query to Stored Proc

2003-11-04 Thread Mike Townend
afaik you will need to build a VARCHAR of IF statements something like DECLARE @sSQL VARCHAR(1000) SET @sSQL = 'select * from foo where ' IF (@bar = 1) BEGIN SET @sSQL = @sSQL + ' bar = 1' END ELSE BEGIN SET @sSQL = @sSQL + ' 1=1' END exec (@sSQL) HTH -Original Message- From:

RE: PW field decryption problem

2003-10-31 Thread Mike Townend
if its just for passwords, why not hash it... i.e. on registration insert into DB Hash(Trim(LCase(Form.Password))) (LCase is used in this case so passwords arnt case-sensitive) then when the user tries to login, check the hash of the form.password with the hash in the DB. One feature of

RE: Striping URL

2003-10-30 Thread Mike Townend
if its always going to be one file (i.e. not mysite.com/foo/bar.htm) then you could use ListFirst(CGI.SCRIPT_NAME, .) failing that, maybe ListLast(ListDeleteAt(CGI.SCRIPT_NAME, ListLen(CGI.SCRIPT_NAME, .), .), .) HTH -Original Message- From: Bailey, Neal [mailto:[EMAIL

RE: I need some enlightenment...

2003-10-24 Thread Mike Townend
try something like cfscript for (i=1; i LTE 4; i = i+1) { variables[testStruct i] = structNew(); } /cfscript HTH -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 18:54 To: CF-Talk Subject: I need some

RE: SQL Assistance

2003-10-23 Thread Mike Townend
you could potentially alias the tables, something like SELECT * FROM news, users creator, users updater WHERE news.creatorid = creator.userid AND news.updaterid = updater.userid -Original Message- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003

RE: VB Functions -- Coldfusion?

2003-10-22 Thread Mike Townend
Left() = Left() Mid() = Mid() IsNumeric() = IsNumeric() CInt() = Val() CStr() = toString() IsUpper() = not sure about this one off hand InStr() = Find() or FindNoCase() Left() = Left() HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October

RE: VB Functions -- Coldfusion?

2003-10-22 Thread Mike Townend
-Talk Subject: RE: VB Functions -- Coldfusion? Thanks Mike BTW, I used ReFind([[:upper:]],strChar) for IsUpper() -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: 22 October 2003 11:05 am To: CF-Talk Subject: RE: VB Functions -- Coldfusion? Left() = Left() Mid() = Mid

RE: CFMX 6.1 and CFX play nice?

2003-10-22 Thread Mike Townend
my initial thought for this (not having tested this) is that CF by default runs under the SYSTEM so it wont have a username in its environment, whereas running the test cpp file you have written is running under the logged on users environment and so returns a username.You could try running CF

RE: Temp Files

2003-10-22 Thread Mike Townend
In CF 5 and less I beleive the file upload was handled by IIS and ended up in the Winnt or System32 dir... With MX the file should I beleive end up in the CFusionMX\runtime\servers\default\SERVER-INF\temp\ or CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp dir -Original

RE: cfdirectory = slow

2003-10-21 Thread Mike Townend
why not use java ? CFOUTPUT #CreateObject(java, java.io.File).init(FileNameAndPathHere).lastModified()# /CFOUTPUT HTH -Original Message- From: Nelson Winters [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 19:02 To: CF-Talk Subject: Re: cfdirectory = slow Thanks for the

RE: cfdirectory = slow

2003-10-21 Thread Mike Townend
>From CFLib.org (dont know which one as i use the CFStudio Control) /** * Returns the date/time a file was created. (Windows only) * * @param fileAbsolute or relative path to the specified file. * @return Returns a date/time object. * @author Rob Brooks-Bilson ([EMAIL PROTECTED]) *

RE: problem with file uploads on a MAC

2003-10-20 Thread Mike Townend
try a CFIF Len(Trim(Form.OptionalUploadField)) CFFILE /CFIF HTH -Original Message- From: Michael Hodgdon [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 16:24 To: CF-Talk Subject: problem with file uploads on a MAC I was hoping I could get some help on the list.Sort

RE: SQLServer2000 and Win2003? any issues?

2003-10-08 Thread Mike Townend
AFAIK, the web edition will not allow you to install SQLServer onto it... -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 8, 2003 13:58 To: CF-Talk Subject: OT: SQLServer2000 and Win2003? any issues? A question on behalf of my web hosting provider .

RE: Testing Multipart Emails

2003-10-07 Thread Mike Townend
Install a mail client like Thunderbird and send it to that, when you view the source of the message then it includes the whole email (both parts of the message) plus headers HTH -Original Message- From: Chris Doughty [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 7, 2003 09:49 To:

RE: cfquery + list

2003-10-07 Thread Mike Townend
something like cfquery name=blah ... select PKID from myTable where name not in (CFQUERYPARAM VALUE=#attributes.myList# CFSQLTYPE=CF_SQL_VARCHAR LIST=Yes) /cfquery altho make sure that there is something in the list... an empty list will throw an error HTH -Original Message-

RE: A clever regex...

2003-09-24 Thread Mike Townend
Have a look for StripHTML on the CFLib.org site, pass the string into this and then check for the len of REReplace(string, [[:space:]], , ALL) HTH Mikey -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:29 To: CF-Talk Subject: A

RE: Stripping the URL...

2003-09-23 Thread Mike Townend
If there is only one site on the server you could implement some code into the global missing template which redirects? HTH -Original Message- From: Bailey, Neal [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 18:31 To: CF-Talk Subject: Stripping the URL... Hey guys, I

RE: Stripping and replacing last \ from a variable

2003-09-22 Thread Mike Townend
GetDirectoryFromPath() Will probably do it... HTH -Original Message- From: Bushy [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 16:55 To: CF-Talk Subject: re: Stripping and replacing last \ from a variable Hi, Whats the easist way to strip the last \ from var1 and

RE: Validating people who register .. how does this work?

2003-09-22 Thread Mike Townend
If there is a password involved, you could generate the password (rather than ask them to input) and email it to them. That's what we do here. HTH -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 17:58 To: CF-Talk Subject: Validating

RE: Is this normal session.sessionid behavior?

2003-09-18 Thread Mike Townend
Don't StructClear on Application or Session scopes. It kills keys that wont be recreated :( do something like... CFSCRIPT Temp = StructNew(); if (StructKeyExists(Session, CFID)) Temp.CFID = Session.CFID; if

RE: Mail spooling issue

2003-09-16 Thread Mike Townend
Check your logs. We have it happening on CF 5 here... Basically the spool file gets locked so CF picks it up again. The error is something like failed to delete spool file as its being used by another process. AFAIK it's a known issue that wont be fixed for 5 HTH -Original Message-

RE: getting image info with CF

2003-09-10 Thread Mike Townend
If you are using MX then this code should work... function getImageDimensions(sFile) { var strRtn = StructNew(); var oImage = createObject(java,javax.swing.ImageIcon).init(sFile); strRtn.Width = oImage.getIconWidth(); strRtn.Height =

RE: Sending binary directly to the browser?

2003-09-05 Thread Mike Townend
Instead of the cfsilent why not just reset whats being outputted... !--- as much whitespace as you want can be put here --- CFFILE action=READ file=C:\CFusionMX\wwwroot\test\myGif.gif variable=gifFile CFCONTENT TYPE=image/gif RESET=Yescfoutput#gifFile#/cfoutputCFABORT HTH Mikey

RE: Version Specific Software

2003-09-04 Thread Mike Townend
MS Source Safe works with CF... Its just a file versioning system, you can store any type of file in it. It even integrates with CFStudio and projects HTH -Original Message- From: Dan Phillips (CFXHosting.com) [mailto:[EMAIL PROTECTED] Sent: Thursday, September 4, 2003 17:16 To:

RE: cfquery??

2003-09-04 Thread Mike Townend
The tag isnt depreciated... Just the attributes listed (such as connectstring) HTH Mikey -Original Message- From: Candace Cottrell [mailto:[EMAIL PROTECTED] Sent: Thursday, September 4, 2003 19:17 To: CF-Talk Subject: cfquery?? So, if cfquery is a deprecated tag, what should we be

RE: ot - random sql select

2003-08-27 Thread Mike Townend
If you are using SQLServer 2K (not sure if it works in 7) you could use SELECT TOP 10 * FROM Foo ORDER BY NewID() HTH -Original Message- From: admin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 07:11 To: CF-Talk Subject: ot - random sql select is there an easy way to

RE: ot - random sql select

2003-08-27 Thread Mike Townend
? - ok - so I'm an idiot in sql ! Cheers Richard - Original Message - From: Mike Townend [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 1:28 AM Subject: RE: ot - random sql select If you are using SQLServer 2K (not sure if it works in 7) you could

RE: Index.cfm problem again

2003-08-27 Thread Mike Townend
Does the JRunScripts virtual dir exist (with execute permissions and the App removed) on that web site? We usually get problems with sites if this dir does not exist HTH Mikey -Original Message- From: DeMarco, Alex [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 14:44 To:

RE: Index.cfm problem again

2003-08-27 Thread Mike Townend
-Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 9:58 AM To: CF-Talk Subject: RE: Index.cfm problem again Does the JRunScripts virtual dir exist (with execute permissions and the App removed) on that web site? We usually get problems with sites

RE: HTTP Post o a CFM page

2003-08-21 Thread Mike Townend
Have a look at GetHttpRequestData() HTH Mikey -Original Message- From: DDE [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 08:11 To: CF-Talk Subject: HTTP Post o a CFM page Hi, I have an application (MS Infopath) which sends a HTTP Post to a CFM page How can I retrieve

RE: Can CF Detect a Win32 Service?

2003-08-20 Thread Mike Townend
On the CoolFusion.com site there is a cfx_servicecontrol tag that allows you to monitor/start/stop service HTH Mikey -Original Message- From: David Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 20:01 To: CF-Talk Subject: Can CF Detect a Win32 Service? Is it

RE: Moving from MySQL to MS SQL Server 2000

2003-08-14 Thread Mike Townend
Have you told the datasource (in CFAdmin) to look at the correct database? My initial thoughts are that its looking at the default DB which is probably master. HTH Mikey -Original Message- From: Bushy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 14:45 To: CF-Talk

RE: Hiding Javascript Source

2003-07-30 Thread Mike Townend
Copy of the file sitting in my Temporary Internet Files dir ;) -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:32 To: CF-Talk Subject: RE: Hiding Javascript Source See what you guys think... any comments appreciated.

RE: Inserting flash into a CF page

2003-07-29 Thread Mike Townend
Without double checking the code... My first thoughts are that this appears somewhere within a CFOUTPUT block so you need to double up all # to treat them as literal # instead of the beginning of a variable HTH -Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED]

RE: all caps in CF-Studio

2003-07-28 Thread Mike Townend
CTRL-A, then right click... Selection - convert to uppercase HTH -Original Message- From: Wurst, Keith D. [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 16:27 To: CF-Talk Subject: all caps in CF-Studio is there way to take some normal text in a .cfm page and turn it to ALL

RE: Client Vars

2003-07-25 Thread Mike Townend
The DSN stuff will need to be already setup in the admin. So you will need to create a DSN (Passing in the Username and password (im pretty sure you cant have the password passed in later)) Then in client variables section of the Admin, you must register the DSN as a ClientVariables DSN (but you

RE: Client Vars

2003-07-25 Thread Mike Townend
[mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 13:53 To: CF-Talk Subject: RE: Client Vars yup but I can't pass the username or password into the DSN as is on a shared server and anyone could hijack the DSN then -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent

RE: Anti Leech Ideas?

2003-07-25 Thread Mike Townend
Have a look at CFCONTENT, with this you could put the download app outside the root of the site so only logged in authorised users can download the software HTH -Original Message- From: Oliver Cookson [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 13:54 To: CF-Talk Subject:

RE: CFForm madness. 0_0

2003-07-21 Thread Mike Townend
Initial thoughts are that you don't have a CFIDE/scripts/ directory or Virtual Dir coming off the root of that website HTH -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 18:19 To: CF-Talk Subject: CFForm madness. 0_0 Okies.. I am totally

RE: MSDN on CF - ASP.net

2003-07-17 Thread Mike Townend
Erm what were you expecting ? It's a Microsoft Article promoting a Microsoft product of course its going to bias towards its own product... Otherwise it's a bit like BlueDragon saying yea we got a cool product, but your better off with Macromedias CF ? Mikey -Original Message- From:

RE: Problems with date based query

2003-07-17 Thread Mike Townend
You could try something like CFQUERY name=findRecent datasource=Categories SELECT * FROM Links WHERE DateAdded BETWEEN CFQUERYPARAM VALUE=#CreateODBCDateTime(DateAdd('d', -3, Now()))# SQLTYPE=CF_SQL_TIMESTAMP AND CFQUERYPARAM VALUE=#Now()# SQLTYPE=CF_SQL_TIMESTAMP

RE: Virtual directories and UNC paths not working on CFMX?

2003-07-17 Thread Mike Townend
How is MX running ? As a System Service or a Service under a User Account that has access to the UNC Dir ? -Original Message- From: Bosky, Dave [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 19:39 To: CF-Talk Subject: Virtual directories and UNC paths not working on CFMX? Is

  1   2   3   4   >