On 2005-05-08 06:15:14 -0500, "Darren" <campagvianet.net.au> said:
Actually they serve two different purposes. cfcontent is used to> Why would one use cfcontent insead of of using cfheader? Sorry if this
> eems like a daft question but they seem to be the same thing to me.
deliver non-HTML content to the user's browser, so you can do things
like send down a Word doent when someone hits a CF page. cfheader
is simply used to set various HTML headers.
One great use of cfcontent is to be able to put things like Word
doents, PDFs, etc. outside your web root so they are not directly
accessible via a URL, but use cfcontent to deliver these doents to
the user. This allows you to easily control access to doents by
using CF since CF can grab doents from anywhere on the server's
Team Macromedia - ColdFusion