ColdFusion

CFHTTP Connection Failure

Posted on September 28, 2009. Filed under: ColdFusion | Tags: , , |

If you’re getting a “Connection Failure” error when using the ColdFusion CFHTTP tag and have absolutely no idea what the problem could be as surfing the page via the browser works, then the web server most likely compresses the content and ColdFusion can’t handle the output.
To fix this issue just add the following two cfhttpparam [...]

Read Full Post | Make a Comment ( 1 so far )

CFPOP GMail

Posted on May 24, 2009. Filed under: ColdFusion | Tags: , |

To check gmail with cfpop you need to use the following code before you make your cfpop call
<cfscript>
javaSystem = createObject( “java”, “java.lang.System” );
jProps = javaSystem.getProperties();
jProps.setProperty( “mail.pop3.socketFactory.class”, “javax.net.ssl.SSLSocketFactory” );
jProps.setproperty( “mail.pop3.port”, 995 );
jProps.setProperty( “mail.pop3.socketFactory.port”, 995 );
</cfscript>
<cfpop action=”getheaderonly” name=”rsEmail” startrow=”1″ maxrows=”50″ server=”pop.gmail.com” port=”995″ username=”your@username.com.au” password=”yourpassword”>

Read Full Post | Make a Comment ( None so far )

Query Of Queries syntax error. Encountered “DELETE.

Posted on May 23, 2009. Filed under: ColdFusion |

If you want to delete some rows from a Query of Query with the DELETE statement you will most likely have encountered the error: Query Of Queries syntax error. Encountered “DELETE.
You can’t use the DELETE statementin QoQ.
Try the following instead
<cfquery
dbtype=”query”
name=”rsDelete”>
SELECT        expiryDateTime
, cacheHash
FROM        variables.instance.cacheCollection
WHERE        (expiryDateTime < <cfqueryparam value=”#now()#” cfsqltype=”CF_SQL_DATE”>)
</cfquery>
<cfloop query=”rsDelete”>
rsDelete.deleteRows( javaCast( “int”, (rsDelete.currentRow [...]

Read Full Post | Make a Comment ( 1 so far )

ColdFusion Flickr Photos API

Posted on May 13, 2009. Filed under: ColdFusion | Tags: , , , |

I’ve written a ColdFusion CFC that integrates with the Flickr API. I know there is already another component out there written in ColdFusion, but I found that one a bit too complicated (no offense intended) and it did not do what I wanted it to do, which is simply displaying the sets and photos.
See an [...]

Read Full Post | Make a Comment ( 8 so far )

ColdFusion Memory Leak, you think?

Posted on February 29, 2008. Filed under: ColdFusion | Tags: , |

Got lots of memory consumption and have no idea where it’s going? Thinking it might be a memory leak in ColdFusion?

Read Full Post | Make a Comment ( None so far )

cfchart – CFIDE/GraphData.cfm problems

Posted on February 13, 2008. Filed under: ColdFusion | Tags: , , , , |

Got cfchart – /CFIDE/GraphData.cfm problems?
 
If you’re running into problems with <cfchart> you’re more than likely experiencing problems with the mappings. On a productions machine you don’t want to expose the CFIDE to the public, so you remove it! However, ColdFusion needs access to some files to process the <cfchart> and display it.
 Luckily it’s easy enough [...]

Read Full Post | Make a Comment ( 4 so far )

Create random list in ColdFusion (Randomizer)

Posted on February 12, 2008. Filed under: ColdFusion | Tags: , |

Looking for a way to generate a random list of values?

Read Full Post | Make a Comment ( None so far )

ColdFusion asynchronous calls (event gateway)

Posted on February 1, 2008. Filed under: ColdFusion | Tags: , , |

Do you have some methods that require lots of processing, but don’t want the customer to have to wait for the result?

Read Full Post | Make a Comment ( 2 so far )

Application.cfc event methods order (order called in)

Posted on February 1, 2008. Filed under: ColdFusion | Tags: , , |

For anyone wanting to know in what order the methods in the application.cfc are called. 
The methods in the Application.cfc are called in the following order when a request is made:

onApplicationStart (skips this method if called before, i.e. it’s only called once)

onSessionStart (skips this method if called before, i.e. it’s only called once)

onRequestStart

onRequest

onRequestEnd

onApplicationEnd is triggered when the application [...]

Read Full Post | Make a Comment ( None so far )

Securing ColdFusion (tips)

Posted on January 23, 2008. Filed under: ColdFusion | Tags: , |

I’ve started to write a document for OWASP about ColdFusion security which I hope will be included on the site when I finish it.
Any feedback is more than welcome, if you’d like to see anything included about ColdFusion Security, let me know and I’ll do my best to include it.
Some of the items covered are:

SQL [...]

Read Full Post | Make a Comment ( None so far )

« Previous Entries

Liked it here?
Why not try sites on the blogroll...