Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2008



Tip: Looking for answers? Try searching our database.

Compiling Code to work in multiple versions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DefconRhall - 11 May 2008 23:26 GMT
I want to protect my application from being modified/stolen by others, so I
need to go through and compile my CF code into byte code. I've done that before
and it works fine.

However now I have a delima. With CF8 out I want to make use of the new
CFImage tag instead of relying on third party image components that do not seem
to work with our main hosting provider.

So I need to include code such as:

If CFVersion is 8
    Use CFImage
else
    Use third party
end if

However older versions of CF see the CFImage tag and throw a fit, and won't
even do anything with the page.

I assume this would also happen if I compiled the code and then tried to run
it on an older version of CF as well.

Is there anyway I could work around this, or do I have to tell everyone "Too
bad upgrade to CF8" ?
Dan Bracuk - 12 May 2008 00:58 GMT
cfinclude might help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.