Ben Forta

Blog

December 22, 2001

And Embedded URL's

is used to perform servers-side HTTP requests - allowing you to retrieve HTTP content programmatically within your CFML code. If the content being retrieved is a Web page then it will likely contain links and other URL's, and these will often use relative paths which will not be useable within your...

December 21, 2001

Comments

Writing code? It should be well commented (like all your code) but not with HTML style comments. There are two ways to mark comments in - a single comment line should be preceded by //, multiple lines (well, single lines too if you are so inclined) should be enclosed within /* and */. (Applies to:...

December 20, 2001

Don't Accept Just Anything

can be used to process files uploaded via HTML forms. By default any and all uploaded files are accepted, and for security reasons this default behavior should never be used. Instead, use the ACCEPT attribute to specify the MIME types that will be accepted when uploaded. (Applies to: ColdFusion All)

December 19, 2001

Setting The Timeout

Using to access an FTP server that is responding slowly? Make sure to raise the TIMEOUT value in the tag - the default is 30 seconds. (Applies to: ColdFusion All)

December 18, 2001

Java is Case-Sensitive

Extending ColdFusion with Java? Remember that unlike CFML, Java is case-sensitive - myMethod() is not the same as MyMethod(). Use the wrong case and you'll either throw an error, or invoke the wrong code. (Applies to: ColdFusion 4.5 or later)

December 17, 2001

CGI Variables Are Invaluable

ColdFusion makes all sorts of information available to you in CGI variables. It is worth dump the contents of the entire CGI scope (perhaps using , if you are using CF5) to see what information you can find there. (Applies to: ColdFusion All)

December 16, 2001

Purging Aged CLIENT Variables

Using CLIENT Variables with database storage? You'll need to purge aged variables sporadically, and ColdFusion can do this for you (it is an Administrator option). But, from a performance perspective you'll be much better off using a scheduled database event to do this instead. (Applies to:...

December 15, 2001

Not All Queries Have An ExecutionTime

Query execution time can be accessed via CFQUERY.ExecutionTime. But only queries created with have this property, queries created using other tags or functions ( or , for example) do not have this property. (Applies to: ColdFusion All)

December 14, 2001

Checking FTP Success

Like many CFML tags, returns a series of variables indicating the status of executed operations. But unlike many others, also provides a simple success or failure flag. After a call check CFFTP.SUCCEEDED and you'll know right away whether your operation was successful or not. (Applies to:...

December 13, 2001

Watch Those Curly Braces

Writing ? Unlike CFML (in which statements have matching tags), if statements have no required end designator. By default, if statements apply to the code that follows them only. To make an entire block of code conditional, that code must be enclosed within curly braces. Omit these and only one...

Page 443 of 489 (4885 posts)