Ben Forta

Blog

October 13, 2000

Use IsDefined() Instead of ParameterExists()

The ParameterExists() function checks to see if a variable exists, so does IsDefined(). But IsDefined() is far more powerful and flexible, and should be used instead of the older ParameterExists() function. You can use IsDefined() anywhere you used ParameterExists(), but there is one important...

October 12, 2000

Commenting Out Code

Need to temporarily remove a line or two of code while testing your CF app? Comment the code out by putting after. The code between those comment tags will not be processed by ColdFusion. (Applies to: ColdFusion All)

October 10, 2000

Don't Run Applications or Services That Are Not Needed

ColdFusion should be running on a dedicated box running nothing else (other than the operating system and HTTP server, of course). So that ColdFusion has access to all the resources possible, make sure that no other unnecessary applications, services, or daemons are running (many are installed and...

October 9, 2000

Accessing Global Variables From Within Custom Tags

The APPLICATION.CFM file is often used to define application wide (or global) variables that are visible to all code. However, Custom Tags do not process the APPLICATION.CFM file, so code within Custom Tags will not have access to these variables unless you explicitly pass them as attributes. You...

October 8, 2000

Dates and Native Database Drivers

ColdFusion developers use the CreateODBCDate(), CreateODBCTime(), and CreateODBCDateTime() extensively when working with dates and times in SQL statements - but those functions may not work if you are using native database drivers because those drivers may not understand the ODBC date format. If...

October 7, 2000

Accessing Network Files and Directories

Having trouble getting ColdFusion to access files and directories on other servers on your network? It is likely a rights related problem. When ColdFusion is installed on NT (or Windows 2000) it is installed with standard system service access - this allows ColdFusion to access the server it is on,...

October 6, 2000

Matching Tag Pairs

Trying to check tag sets to verify that they match correctly? Simply place your cursor in any tag and press Ctrl-M (for match). Studio will jump to the matching tag, and will jump back again if you press it again. If there is no match, or you end up on the wrong tag, you'll have found a coding...

October 5, 2000

or ?

and can often be used interchangeably. But if you find yourself writing long lists of statements, you might want to use might not be worth it), but as that list grows can be as much as 7 times faster than . (Applies to: ColdFusion 4 (or later))

October 4, 2000

Sending E-Mail with Multiple Attachments

Prior to ColdFusion 4.5 there was no simple way to send multiple e-mail attachments using the tag. In CF 4.5 that tags MIMEATTACH attribute still only supports a single attachment, but you can use multiple tags to attach multiple attachments. (Applies to: ColdFusion 4.5 (or later))

Page 487 of 489 (4890 posts)