Ben Forta

Blog

May 26, 2001

Bytes or Kilobytes

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

Preventing Inline Evaluation

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

Tagless If Statements

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

Too Much Knowledge Is Dangerous

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

Multiple Custom Tag Directories

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

The Complete CFML Function List

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

Monitoring Response Time

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

Monitor The Queue

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

Generating Multi-Locale Content

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

May 17, 2001

Faster Full Text Searching

The SQL LIKE operator can be used to perform free form searches against text in table columns. But LIKE is not fast, especially if searching for sub-strings (using wildcards at the start of the search text). For faster full text searching use ColdFusion's integrated Verity engine which can be used...

Page 464 of 489 (4885 posts)