May 27, 2001
is usually used to provide an alternate error message screen, but that is not all it can do. As of ColdFusion 4.5, supports a new TYPE called EXCEPTION. Using this type you may specify error pages that have access to all CFML tags and functions, without having to use and . (Applies to: ColdFusion...
May 26, 2001
ColdFusion returns file sizes (uploaded using , or listed using or ) in bytes, not in kilobytes. To convert these sizes to the more familiar KB, simply divide them by 1024. (Applies to: ColdFusion All)
May 25, 2001
The IIf() function is used to perform inline conditional processing, taking an expression to evaluate as the condition, and the expressions to be evaluated upon that evaluation returning true or false. But what if those latter expressions were literal strings to be displayed as is (and not...
May 24, 2001
is used to implement conditional processing, but sometimes having to use sets of tags can break up the flow of an operation, as in this example: . To simplify this type of coding, consider using the IIf() function which essentially is a / implemented in a function (instead of tags). IIf() takes...
May 23, 2001
There are lots of folks out there who would love to hack into your site (often to steal content, or just to make your life a misery). Hackers break into hosts by trying to learn as much about the OS and software begin used, the more they can determine about your environment, the easier it is for...
May 22, 2001
By default, ColdFusion looks for Custom Tags in the current directory and beneath a directory named CustomTags under the CF root. You may change the location of this directory (for security purposes) or add additional directories (for greater flexibility) by manipulating the...
May 21, 2001
Want to know if a specific function is supported in your ColdFusion installation? Use the GetFunctionList() function which returns a structure containing the entire supported function list. You can loop through this structure with , and access it using all the Struct functions. (Applies to:...
May 20, 2001
Want to know how long it is taking to execute requests on your ColdFusion Server? Check the Avg Req Time (Average Request Time) counter in PerfMon (Windows) or cfstat (Unix). This counter tracks the ongoing average response time of all requests, and the lower the number the better. And the actual...
May 19, 2001
You should always be monitoring system response time to gauge whether or not users are leaving your site because it is taking too long to respond. One of the most important tools used to gather this information is performance monitoring (using PerfMon or cfstat). The Queued Requests counter will...
May 18, 2001
The SetLocale() function is used to set the active locale so that dates, numbers, and currencies may be correctly displayed in local formats. In a multi-locale application the SetLocale() function must be called in every request to set the locale for that specific request, and when processing has...