Re: Reliably stripping out only the email address?

2004-06-10 Thread Mike Townend
function ExtractEmail(sString) {     return trim(ReReplace(sString, ".*<([^>]*)>.*", "\1")); }     #ExtractEmail(idxFoo)# works fine on all but the last entry, I havnt come across any of ours that had that format so havnt worried about it :) HTH Jedi Bryan F. Hogan wrote: > Thanks > > I

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 s

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, sim

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 iis

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=106&tid=185&tid=190& tid=201 Theres a Beta of Mono out that should allow .Net to run on linux -Original Message- From: John Ho [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 5, 2004 16:49 To: CF-Talk S

RE: CFML from a DB

2004-04-19 Thread Mike Townend
Something like #Evaluate(DE(Form.Text))# 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 a textarea that i

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
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: 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 (iet-o

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 th

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 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 "String index out of range: 0" error means?  I get it when I

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

2004-02-26 Thread Mike Townend
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 an image between each record. It looks great un

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: 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. Y

RE: [cftalk] RE: Stored Procedures

2004-02-20 Thread Mike Townend
s2 @searchtext varchar (100) AS DECLARE @query varchar(1000) SET @query = 'SELECT * FROM Messages' SET @query = @query + ' WHERE 1=1' IF @searchtext <> '' SET @query = @query +  'AND Message LIKE'  + '%' + @searchtext + '%'

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: 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 dif

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 th

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 Message---

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 S

RE: DateDiff

2004-01-19 Thread Mike Townend
add quotes around the n #Abs(DateDiff("n", date1, date2))# -Original Message- From: JT [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 16:04 To: CF-Talk Subject: DateDiff why does this not work? #Abs(DateDiff(n, date1, date2))#   _ [Todays Threads] [This Message]

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: 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? Afternoo

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 http://abc.

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: Creati

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

2004-01-08 Thread Mike Townend
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:

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
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: R

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 globally.

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 somet

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

RE: SQL Server 2000 and Pagination

2003-12-22 Thread Mike Townend
i tend to use this... CREATE PROCEDURE [dbo].[spr_PagedItems] @Page   int, @RecsPerPage int, @Tournement  int 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 ( tempI

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 assume

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. 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 the code invoking the C

RE:

2003-12-08 Thread Mike Townend
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: you dont mention which version of CF you are using, but there is a problem with MX whereby if you use functions to

RE:

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. will produce double quotes rather than single but or will be OK,  I beleive (got this from a

RE: Nulling or reseting password in MX 6.1

2003-12-03 Thread Mike Townend
CFusionMX\lib\neo-security.xml set the         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 MX 6.1 OK, I forgot my Admin password on my MX 6.1

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     #ArraySum(ListToArray(ValueList(MasterQuery.Orig_amt)))# HTH -Original Message- From: Mickael [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 3, 2003 13:33 To: CF-Talk Subject: Help with Q of Q Hel

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...     INSERT INTO foo (dtWhatever)     VALUES (#Now()#) or     INSERT INTO foo (dtWhatever)     VALUES ()     or maybe even the inbuild access object (for Now() anyway) which i beleve is INSERT INTO foo (dtWhate

RE: Image dimension tag that works on Linux

2003-11-28 Thread Mike Townend
e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com   - Original Message -   From: Mike Townend

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(); strRt

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: 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 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 Townend

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     SELECT #PreserveSingleQuotes(lstCols)#     FROM...     #qryFoo[idxCol][1]# HTH -Original Message- From: David Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 15:48

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     oPB = CreateObj

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 aut

RE: On the fly DSN creation, why?

2003-11-25 Thread Mike Townend
ed on this one. 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

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 ot

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: CF-T

RE: Query to structure

2003-11-19 Thread Mike Townend
You could try something like...     HTH -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 12:42 To: CF-Talk Subject: Query to structure Hello I have a query which returns one row with a lot of columns... I want to take th

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: 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 To:

RE: Screen Scraping

2003-11-06 Thread Mike Townend
where in the webroot, but how I have the CFC 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]

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: Concatenating Queries

2003-11-05 Thread Mike Townend
something like     SELECT *     FROM query1     UNION         SELECT *     FROM query2 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 looks like UNION is the a

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 Threa

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   for (i=1; i LTE 4; i = i+1) {     variables["testStruct" & i] = structNew();   } 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 enlightenment... I

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: 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 Mess

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 un

RE: VB Functions --> Coldfusion?

2003-10-22 Thread Mike Townend
OTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 7:18 AM To: CF-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 Octob

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 22,

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 file   Absolute or relative path to the specified file. * @return Returns a date/time object. * @author Rob Brooks-Bilson ([EMAIL PROTECTED])

RE: cfdirectory = slow

2003-10-21 Thread Mike Townend
why not use java ?     #CreateObject("java", "java.io.File").init(FileNameAndPathHere).lastModified()# 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 suggestion

RE: problem with file uploads on a MAC

2003-10-20 Thread Mike Townend
try a     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 of at a loss for this one.  I am aware there are kno

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: cfquery + list

2003-10-07 Thread Mike Townend
something like select PKID from myTable where name not in ( CFSQLTYPE="CF_SQL_VARCHAR" LIST="Yes">) altho make sure that there is something in the list... an empty list will throw an error HTH -Original Message- From: Won Lee [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 7,

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: C

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:

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 ha

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 peopl

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 i

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... Temp = StructNew(); if (StructKeyExists(Session, "CFID")) Temp.CFID = Session.CFID; if (StructKeyExists

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- F

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 = oImage.getIconHeig

RE: Sending binary directly to the browser?

2003-09-05 Thread Mike Townend
Instead of the cfsilent why not just reset whats being outputted... #gifFile# HTH Mikey -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Friday, September 5, 2003 22:13 To: CF-Talk Subject: Re: Sending binary directly to the browser? >>Christian Cantre

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 us

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: CF-T

RE: Index.cfm problem again

2003-08-27 Thread Mike Townend
moved?" - Alex -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 pr

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: C

RE: ot - random sql select

2003-08-27 Thread Mike Townend
mean ? - 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

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: 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 possi

RE: hard returns and text areas

2003-08-20 Thread Mike Townend
We tend to do something like ", "ALL")> To relace all hard returns with a tag HTH Mikey -Original Message- From: Wurst, Keith D. [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 15:23 To: CF-Talk Subject: hard returns and text areas hi. does anyone know of a way to ident

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 Subject:

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. http://www.become

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 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] Sent: Tuesday

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 CA

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: Anti

RE: Client Vars

2003-07-25 Thread Mike Townend
wings [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 PROTE

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: 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: Problems with date based query

2003-07-17 Thread Mike Townend
Nope, this should run on an Access datasource, at worse you may need to remove the s but the rest should be fine... HTH -Original Message- From: Jake . [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 20:20 To: CF-Talk Subject: Problems with date based query This would be SQL

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   >