Ben Forta

Blog

February 20, 2002

Checking Array Size

IsArray() is usually used to test if a variable is an array, but that is not all it can do. IsArray() can take a number as its second optional parameter – the number of elements to check for. Using this parameter, IsArray() will check that the variable is an array that contains the specified...

February 19, 2002

Expressions Versus Values

takes an expression to be evaluated, along with one or more tags with values to be matched. expressions may be dynamic (optionally including variables, functions, and other expressions). values, however, must be actual values and not variable expressions. (Applies to: ColdFusion All)

February 18, 2002

Server Side File Transfers

Need to programmatically move files between the ColdFusion server and other servers? You have three ways to do this - 1) use , assuming you have network access to the remote server, 2) use if the remote server is running an FTP server, or 3) use (using to upload the file). (Applies to: ColdFusion...

February 17, 2002

Processing POP Dates

Dates returned by (in the query.date column) cannot be used with ColdFusion date functions as is, they need to be converted into valid date time objects. To do this, use the ParseDateTime() function, and set the second (optional) parameter to "POP". (Applies to: ColdFusion 3 or later)

February 16, 2002

Improving Performance

provides two e-mail retrieval options - ACTION="getall" retrieves all messages (and possibly attachments), ACTION="getheaderonly" retrieves just mail headers (to, from, subject, etc., but no body or attachments). The latter of the two executes quicker, so if all you need is message headers (perhaps...

February 15, 2002

Debug Output Suppression

ColdFusion debug output is appended to generated pages. Need to suppress debug output temporarily? You can do this without make any CF Administrator changes - simply use the tag to set SHOWDEBUGOUTPUT="no". (Applies to: ColdFusion 4 or later)

February 14, 2002

Case-Insensitive Output Grouping

The GROUP attribute allows you to group records together within an output loop. By default, group processing is case-sensitive - meaning that values in the GROUP column that differ by case are treated as being in different groups. Obviously this has no impact on numeric values, but this does affect...

February 13, 2002

Output Suppression

To execute CFML code and not generate any output, enclose that code within tags. Unlike commenting out code, the code will still be executed. However, no output will be sent to the client, and extraneous white space will also be suppressed. (Applies to: ColdFusion 5 or later)

February 12, 2002

Monitoring Scheduled Events

ColdFusion executes scheduled events at intervals specified using or the ColdFusion Administrator. To check that scheduled events actually executed as intended, check the schedule.log file (in the cfusionlog directory). (Applies to: ColdFusion 4 or later)

February 11, 2002

And Field Names

By default, attempts to insert all available FORM fields into a specified table, matching each field name to a similarly named column. To exclude one or more form fields from the INSERT operation, use the FORMFIELDS attribute to specify a comma delimited list of field names that should not be...

Page 437 of 489 (4885 posts)