Ben Forta

Blog

July 10, 2002

Setting Stack Trace Depth

Generated debug output may include optional stack trace information along with relevant execution times. The default stack depth is 5, this number may be raised or lowered as needed. Set to 0 to show all (no limit). (Applies to: ColdFusion MX)

July 9, 2002

Client Variable Database Storage

CLIENT variables may be stored in a database of your choice, ideal for sharing state in a clustered environment. Data is stored in two tables named CDATA and CGLOBAL which will be created automatically if using JDBC drivers. If you use an ODBC driver you'll need to create these tables manually....

July 8, 2002

Checking for Specific Objects

The IsDefined() function checks to see if a specified variable or object exists. But what if you wanted to then check to see if it was of a specific type or an instance of a specific component? You could use one of the many Is functions, but there is a better way. IsObject() takes the name of an...

July 7, 2002

RandRange() Limits

RandRange() returns a random integer in between a specified range. The low value must be 1 or greater, and the high value must be no greater than 100,000,000 (one hundred million). (Applies to: ColdFusion MX)

July 6, 2002

Getting INI File Sections

GetProfileString() allows you to read INI file settings (and the matching SetProfileString() function writes those settings). Now using INI files is even easier - the new GetProfileSections() function reads an INI file and returns a structure containing all of the sections and the entries in each....

July 5, 2002

URL Encoding Character Sets

URLEncodedFormat() makes strings URL safe, and URLDecode() unencodes those strings. To better support multi-lingual and localized applications, both of these functions now take an optional character set name as a second parameter. (Applies to: ColdFusion MX)

July 4, 2002

Safely Reading Different Character Sets

If you are receiving FORM fields or URL parameters that are not in Latin-1 encoding, use the SetEncoding() function to specify the character set to use. For example, to correctly process Japanese SHIFT-JIS characters in FORM fields you could use SetEncoding("FORM", "SHIFT-JIS"). (Applies to:...

July 3, 2002

Read LiveDocs

The ColdFusion documentation is good, but it's even better when combined with updates and user comments. You can browse the updated docs (and add your own comments) at http://livedocs.macromedia.com/. (Applies to: ColdFusion 5 & MX)

July 2, 2002

and Directory Entries

no longer returns . (current directory) and .. (parent directory) entries as it did in CF5 and earlier. As such it is no longer necessary to filter out these entries when processing directory listings. (Applies to: ColdFusion MX)

July 1, 2002

Character Sets

now supports an optional CHARSET attribute which defines the character set of the URL being requested. The default is the server default (or UTF-8). If existing calls are failing or returning truncated or invalid data you might want to explicitly set the CHARSET as needed (use UTF-8 if you are...

Page 423 of 489 (4885 posts)