ColdFusion
CFHTTP Connection Failure
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 [...]
CFPOP GMail
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”>
Query Of Queries syntax error. Encountered “DELETE.
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 [...]
ColdFusion Flickr Photos API
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 [...]
ColdFusion Memory Leak, you think?
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
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 [...]
Create random list in ColdFusion (Randomizer)
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)
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)
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)
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