This content has been marked as final. Show 3 replies
i have a "refresh" page for monitoring updates on a client site... the only issue is that this page must be kept open but it does goes thru numerous data sources and updates any pages as needed.
nice thing is that you can keep a running track of generated content (with links) and check for errors, etc...
basically page has line
<META HTTP-EQUIV="REFRESH" CONTENT="900;URL=home.cfm?pdg=1&pdgg=1&pncom=1&dtst=1">
the 900 is seconds (15min) and it just calls itself each time. page has all functions and reporting written in
maybe will work your requirements. rest is just tags to trigger queries, etc and keep out the nosy.
Does anyone have an example of such a system that would keep me from re-inventing the wheel?
I haven't. But I think your description suggests straightforward coding:
1) use cffile to read the text of the dynamically generated cfm page (dgp.cfm, say);
2) store text in database;
3) modify the content of dgp.cfm;
4) use cffile to write the new content to dgp.cfm.
Use a try-catch in each step. The process wont reach the crucial 4th step if an exception occurs in an earlier step.
edited: reversed order steps 1 and 2