Ben Forta

Blog

January 1, 2001

Help With CF Functions

Need help with CFML function syntax? ColdFusion Studio 4 introduced a new feature called "function insight". To use this feature simple type the name of a function followed by the first ( and then wait a second - ColdFusion Studio will pop up an inline tip with the exact syntax and options for that...

December 31, 2000

Lock Down ColdFusion

Example applications and documentation do not belong on production sites (which is why they are an install option). As a rule, the less you have running on a server the less vulnerable it is. If you do need the CFDOCS directory installed for some reason, secure it (at the OS or Web server). The...

December 30, 2000

File Uploads and Relative Paths

is used for file system management, as well as for processing uploaded files. File paths may be relative for some operations, but not for specifying the destination path when ACTION="UPLOAD". So how can you use relative paths? Simple pass the relative path to the ExpandPath() function and...

December 29, 2000

Simple NT/IIS Authentication

Need to authenticate users (forcing them to login and validating their password)? If you are using NT (or Win2K) and IIS, and your users have network accounts, then here's a really easy (and safe) way to perform authentication. Simply prevent anonymous access to the files or directory structure to...

December 28, 2000

Logging Slow Pages

ColdFusion 4.5 introduced a new Administrator option (on the Logging page) called "Log Slow Pages". This option lets you specify the expected request processing time for your site and any requests that take longer than this will be written to a log file. By default this option is not enabled, but...

December 27, 2000

Building Dynamic Variables

ColdFusion provides special functions for creating dynamic variables (where the variable name is created dynamically). As of ColdFusion 4 it is possible to create dynamic variables using a simple by specifying a string (within quotes) as the variable name. For example, to create a variable in the...

December 26, 2000

Forgot Your CF Administrator Password?

ColdFusion Administrator should always be password protected. But what if you forget the password? There is no way to read the existing password, but if you has administrative access to the computer than you can turn off the password required flag (which will let you in to the Administrator without...

December 25, 2000

ColdFusion Studio Shortcuts

ColdFusion Studio (and HomeSite) supports all sorts of keyboard shortcuts (Ctrl-B=Bold, Ctrl-G=Go to line, F2=Show tag tip, and many more). ColdFusion Studio comes with dozens of keyboard shortcuts defined, but it also lets you change and define your on. Want Ctrl-Q to insert a ? You can do that....

December 24, 2000

Goodbye 404

HTTP error 404 is the dreaded "file not found" error, usually caused by users mistyping URL's or by broken links. ColdFusion displays it's own 404 error if a CFM files does not exist, and it is not a pretty error page at all. ColdFusion 4.5 allows you to provide your own system-wide CFM 404 handler...

December 23, 2000

Not so Random Random Numbers

The ColdFusion Rand() and RandRange() functions are used to return random numbers, but the numbers generated are not truly random (no computer generated random numbers are). Random numbers are actually calculated and sequenced starting from an initial value (called a seed value), and if the same...

Page 479 of 489 (4890 posts)