CF’s CreateObject() on GoDaddy
The fact that GoDaddy disable the ColdFusion CreateOject function is a real pain. I’ve previously blogged about it, as have a number of others. Scott Pinkston does a good summary of how to code around it.
It continues to annoy people who then vent about it on Sean’s lengthy CF GoDaddy blog entry. And fair enough too.
Here’s the good news… CreateObject(”component”,…) works just fine on the Linux hosting! No really it does.
Here’s the working ModelGlue Widget example (Reactor version). That would never run if CreateObject was barred.
What about the Transfer version of that example? Well that ain’t going to work properly. It uses CreateObject(”java”,…) which is still blocked. Let’s check the ORM scoreboard… Reactor 1 - Transfer 0.
Finally, CF8 is just around the corner. It has a number of features that address these issues, like; Optionally restricting access to runtime/system java classes. Per application settings (think custom tag paths and mappings).
How long it will take GoDaddy to upgrade to CF8? A fricken long time is my guess :(



I wonder if you just got lucky and found a box with reduced settings?