Hi Dick,

Use CFHTTP.  I pulled the following straight out of my CMPro cms:

<query goes here>

<cfhttp 
        url="#request.BaseHRef#control.cfm?id=#MakePages.ID#" 
        method="GET" 
        path="#request.BasePath#" 
        file="page_#MakePages.ID#.html" 
        resolveurl="false" 
        useragent="CMPro_PageCreator">

There's literally nothing to it. This routine queries my own site from
my own server, so connectivity across the web really sin't an issue.  My
whole site is built on this, although I built in stuff that lets the
system specify a .cfm page is used if I need something more than simple
markup.

To take this a step further, you can even build a 'static cfm' page,
which exists so that a visitor doesn't risk dropping off CF's radar
insofar as inactivity-based expiry is concerned.

I also do a thing where I throttle down the execution of the page
builder.  A nice spiff if you have to create 200-1000 pages at a whack.
Keeps your server from freaking.  Contact me off-list if you want a
complete code sample.

Cheers,

--------------------------------------------
 Matt Robertson       [EMAIL PROTECTED] 
 MSB Designs, Inc.  http://mysecretbase.com
--------------------------------------------

-----Original Message-----
From: Dick Applebaum [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 9:48 PM
To: CF-Talk
Subject: Using CFMX to generate Static HTML pages


What is the easiest way to use CFMX to generate static HTML pages from 
dynamic content.  I want to store the pages as .html pages in the web 
server root, rather than in the CFMX server root.  The static site will 
be accessed with no load on the CFMX server.

TIA

Dick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to