I put the CFX_catchpa code in a separate file (catchpa.cfm), and the end of the file used CFCONTENT (you MUST use CFHEADER with that), then referenced the this file in the main template with <img src="catchpa.cfm"> call.
Looks like that works. I'll send along code if anyone interested.
Jake
Matt Woodward wrote:
I don't think this will be possible on the same template. I would think either you could just run a cleanup script on a schedule (e.g. at 3 a.m. wipe out all the images), or if you're concerned about deleting images that might be being used right at the point when they're getting deleted, keep a log (text file, database, whatever) of the images as they're being used, and then in your scheduled job just delete the ones that you know have already been used.
Matt
On Fri, 07 Jan 2005 00:43:48 -0600, Jake <[EMAIL PROTECTED]> wrote:
All,
I'm trying to implement cfx_captcha (Thanks again Matt!), and have hit a snag.
So I can create the image, no problem. I can then display it and check the session against what the user plugs in, no problem.
But what I really want to do in my template is:
- Use cfx_captcha to create the funky type image (check) - Display said image to users (check) - Delete the image using CFFILE in order to not create a massive image directory on the server (imagine if a user hits the refresh a few times...)
I want to do all three steps in the same processing template. But basically, the entire templates processes before displaying the image to users so it's deleted by the time users see the page content.
Is this possible? Or are there alternatives?
Thanks! Jake
---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
